Laravel – Can’t get session in controller constructor

In latest version of Laravel , Session is not getting in constructor or in Pages. I solved this problem by doing some stuffs You can’t do it by default with Laravel 5.3. But when you edit you Kernel.php and change protected $middleware = []; to the following it wil work. Hope this works!

Read More

How to create template in Laravel

To create a template in laravel go to following folder :- views/layouts and create a file yourtemplate.blade.php and paste the following code @include(‘includes.dashboard.header’) @include(‘includes.dashboard.sidebar’) @yield(‘content’) @include(‘includes.dashboard.footer’) Include word determines the file for header, sidebar and footer then you can create the respective files there   to add the content you can call this template directly […]

Read More