Routes.php
<?php
Route::get('/user/register', 'RegistrationController@registerUser');
//Route::get('/index', 'HomeController@index');
Route::get('/', 'RegistrationController@registration');
?>
RegistrationController.php
<?php namespace App\Http\Controllers;
class RegistrationController extends controller{
public function registration(){
return view('index');
}
public function registerUser(){
var_dump(1212);
die;
}
}
The route root("/") correctly renders my page.
However when I try "/user/register" => I expected to get a dump of 1212 and blank screen. Here is what I got.
How can I fix this problem ?
Best regards, Manish
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire