Closed a3gz closed 5 years ago
I have the same issue
I have this problem too, i made a pull request in cartalyst/support, meanwhile i create a package with the fix, waiting by their own fix
https://github.com/Mxrck/sentinel
composer require mxrck/sentinel:2.0.18
found also calls to str helpers in a few files on this package
https://github.com/Mxrck/sentinel/commit/127d836c0a050084c50eea246d6d08446a72e75c
I don't know how to made pull request without the composer.json updated in my fork
An FYI, we will have this repo updated by monday. @Mxrck appreciate your good work.
@a3gz save entry with activated = true
@Surya1995 I'm not entirely sure that I understand what you mean, but if I do then: the fireEvent()
method will be called anyway from register()
.
As an FYI, here's the error output I get when running tests:
Error: Call to undefined method Illuminate\Support\Testing\Fakes\EventFake::fire()
/home/vagrant/ptbx-franklin/vendor/cartalyst/support/src/Traits/EventTrait.php:127
/home/vagrant/ptbx-franklin/vendor/cartalyst/sentinel/src/Sentinel.php:169
/home/vagrant/ptbx-franklin/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:237
Implementing the solution provided by @a3gz fixed the problem for me and all my tests ran successfully.
Released cartalyst/support
v2.0.2
and then v2.0.3
with a small revision.
Give composer update
a go and see if it solves the issue and works as expected.
@Mxrck Feel free to submit a pull request with your other changes for dropping the usage of the deprecated Laravel helpers and use the classes instead.
@brunogaspar I just deleted my Vendor folder, ran composer install
and everything ran great. Thanks for all your hard work!
@brunogaspar Problem solved; Thank you very much!
Hello
I'm getting an error when I try to
registerAndActivate()
a user. The error is:thrown at
on line 127.
I learned that Illuminate Events removed the
fire()
event on version 5.8. I think that the problem is that Sentinel requiresilluminate/support ~5.0
which I believe accepts any version less than 6.0 thus, 5.8.I think this could be solved in at least two ways:
One could be to change the dependency on Illuminate support to up to
illuminate/support 5.7
.The other one could be to change
EventTrait
(which is technically external tocartalyst/sentinel
) on line 125 from:to
I wasn't sure where to post this issue because
cartalyst/support
, to whichEventTrait.php
belongs doesn't requiredilluminate/support
; it's actuallycartalyst/sentinel
that requires it. So, although the code that throws the error is not inside this project's code, it is this project's dependency that exposes the conflict. So I'm not really sure if I should have posted this issue oncartalyst/support
instead.