Kryptonit3-zz/Counter

Laravel 5.2 Compatibility issue

Closed this issue ยท 6 comments

Facades and alias added to config/app.php works properly in laravel 5.1 but this is not work with 5.2 and The following error occur:
FatalErrorException in CounterServiceProvider.php line 18: Call to undefined method Illuminate\Foundation\Application::bindShared()

I follow this link:
https://laracasts.com/discuss/channels/laravel/call-to-undefined-method-illuminatefoundationapplicationbindshared

i do

bindShared has been renamed to $app->singleton()

but this error show:Method filter does not exist.

@HekmatFavid update your composer.json to "kryptonit3/counter": "5.2.*" and let me know if that fixes it.

Thank you
following problem occures !!
capture

the issue is this: https://github.com/Kryptonit3/Counter/blob/3380b3121380008f44007e57f44240a7915dc933/src/routes.php

I will need to figure out a way to do this with middleware instead of Route::filter when I can find some time.

@HekmatFavid run a composer update. I added a change to a new release 5.2.2. As long as your composer.json has 5.2.* a composer update should pull in change. Let me know if that fixes it.

๐Ÿ‘ ๐Ÿ‘ It work's Properly. ๐Ÿ‘ ๐Ÿ‘
I really appreciate your help