how to write function Shared in laravel code example
Example: pass parameter to view laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});