Route::group(['middleware' => 'web'], function ()
{
Route::get('/test', ['uses' => 'ChatController@test', 'as' => 'test.session']);
});
<?php
namespace App\Http\Controllers;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;
use App\Http\Requests;
use Session;
class ChatController extends Controller {
public function test()
{
Session::put('key', 'value');
dd(Session::all());
}
}