I am using "artem-schander/l5-modular": "^2.1" in laravel 6 . Package successfully installed. Also created a module name Employee. when I hit url like
<a href="" >Employee</a>
route (App/Modules/Employee/web.php)
Route::group(['module' => 'Employee', 'middleware' => ['auth'], 'namespace' => 'App\Modules\Employee\Http\Controllers'], function () {
Route::get('employee-list', 'EmployeeController@welcome');
});
It shows 404 Not Found . How can I link it with module route ?
If I use Route::get('employee/employee-list', 'EmployeeController@welcome'); Then shows Target class [App\Modules\Employee\Http\Controllers\App\Modules\Employee\Http\Controllers\EmployeeController] does not exist.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire