laravel pass values 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']);
});