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