samedi 2 juillet 2016

Controller don't work on LARAVEL 5

i started to use Laravel today , but i have some problems , controllers don't run . this is my controller :

<?php 
class HomeController extends Controller {
/*

 * @return void
 */
public function __construct()
{
    $this->middleware('guest');
}
/**
 * Show the application welcome screen to the user.
 *
 * @return Response
 */
public function index()
{
    return view('welcome');
}
public function contact(){
    return view(pages.contact);
}
?>

and this is my route :

<?php
Route::get('/', function () {
return "hello";
});

Route::get('contact','HomeController@contact');  
?>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire