laravel-5.1
Get last part of current URL in Laravel 5 using Blade
Of course there is always the Laravel way: request()->segment(count(request()->segments()))
How to make SQLite work in Laravel
Short Solution Though not answering the question, the way to fix “Database not found” issue is to replace the following line in database.php: ‘database’ => env(‘DB_DATABASE’, database_path(‘database.sqlite’)), with ‘database’ => database_path(‘database.sqlite’),