I'm trying to make a test controller, i read its documentation and following the instruction during developer controller and view. But it does not working.
Controller
project/app/http/controllers/TestController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class TestController extends Controller {
/**
* Show the profile for the given user.
*
* @param int $id
* @return Response
*/
public function index()
{
return view('test');
}
}
?>
Route
Route::get('test', 'TestController@index');
View
project/resources/views/test.blade.php
simple html
I'm testing this controller using http://localhost/project/public/test
but it does not work. Can any one guide me where i'm wrong.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire