php - Package development - auth check doesn't work -


i have made simple fresh laravel 5.3 app purpose of developing package. have followed instructions here , modifications made in comments user named janis. works perfectly.

then decided upgrade published view

@if(auth::check())     id: {{auth::id()}}. @else     not logged in @endif 

the current state of app uploaded github here.

problem

the view check doesn't work. have not logged in. how make auth::check() work? in tab of browser logged correclty.

a hint

i not sure how follow this hint

to do

please instruct me how make auth::check() work in view.

since laravel 5, route in routes.php automatically uses web middleware, not happend packages routes.

to use laravel's authentication package controllers , views need enforce web middleware usage in package route.php using like:

route::group(['middleware' => 'web'], function () {   // package routes here }); 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -