return view controller laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
return view controller laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
return view with variable laravel
return View::make('blog')->with('posts', $posts);
return view controller laravel
Route::get('/', function () {
return view('greeting', ['name' => 'James']);
});
laravel routes return view in web.php
Route::get("/page", function(){
return View::make("dir.page");
});
return view with variable laravel
return View::make('blog')->with('posts', $posts);
laravel call controller method from view
Just try this in your view :
{{ ControllerName::Functionname($params); }}
OR
<?php echo ControllerName::Functionname($params);?>
laravel routes return view in web.php
Route::get("/page", function(){
return View::make("dir.page");
});
laravel call controller method from view
Just try this in your view :
{{ ControllerName::Functionname($params); }}
OR
<?php echo ControllerName::Functionname($params);?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us