I am using this code for use Auth::user() outside Laravel 5.1 and works properly:
require '../laravel/bootstrap/autoload.php';
$app = require_once '../laravel/bootstrap/app.php';
$app->make('Illuminate\Contracts\Http\Kernel')->handle(Illuminate\Http\Request::capture());
But in Laravel 5.2 does not work. What is the solution?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire