sending data to laravel 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']);
});