laravel do not pass all data to view code example
Example: pass parameter to view laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});