Welcome Guest, Not a member yet? Register   Sign In
myth-auth How not to load the default routes
#6

(06-11-2021, 10:17 AM)paliz Wrote: yes you need it

$routes->group('', ['namespace' => 'Myth\Auth\Controllers'], function ($routes) {
}
If I use namespace my controllers is not found

PHP Code:
$routes->group('/', ['namespace' => 'Myth\Auth\Controllers'], function($routes){
 
$routes->get('''CDR\Dashboard::index');
 
$routes->group('users', function($routes){
 
$routes->get('add''CDR\Users::add');
 
$routes->post('add''CDR\Users::store');
 });
}); 



404 Not Found
Controller or its method was not found: \Myth\Auth\Controllers\CDR\ Dashboard :: index

is there any way to do it?
Reply


Messages In This Thread
RE: myth-auth How not to load the default routes - by rafinhaa - 06-11-2021, 12:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB