Laravel 6.2 Call to undefined function Cartalyst\Sentry\Users\Eloquent\ends_with() on Sentry::check()
This is a fresh install of Laravel 6.2 and "rydurham/sentinel": "^3.0"
Sentry::check() seems to have an issue with Laravel 6.2.
I've tried \Sentry::check() and many of the other versions that pop up in PhpStorm like "\Cartalyst\Sentry\Sentry", but nothing registers as the correct Sentry::check()
How can I properly register Sentry::check()?
The ends_with() helper function was removed from Laravel in version 6.0 which is most likely why the error you mention in the title of this issue was thrown. I am not sure why the tests in this package didn't catch that problem - I will look in to that.
Given that Cartalyst has deprecated the Sentry package it is unlikely that they will address that on their end. You have two options:
- Migrate to
cartalyst/sentinel(This will be your best bet over the long term.) - Add a version of the
ends_withhelper to your application. (There may be other deprecated helper methods that will need to be restored in your application as well.)
I don't think it makes sense for this package to try to restore those missing helper functions - there could be some unexpected consequences there. Most likely this means that this package has finally reached the end of the road; I will probably have to deprecate it.
Well Sir,
It has been an interesting 4 years that I have been using your package and I thank you for it. It has helped me learn Laravel and how authentication works.
Thank you; I appreciate you saying that.
If you are interested in upgrading your project to use cartalyst/sentinel you can checkout these two repos that you might find helpful: