4
I’m having trouble with Auth::routes()
use the framework Laravel
in the version 5.2
my route archive is like this:
Route::singularResourceParameters();
Auth::routes();
Route::group(['middleware' => ['cors']], function (){
Route::resource('clientes', 'ClienteController');
Route::resource('categorias', 'CategoriaController');
Route::resource('embalagens', 'EmbalagemController');
Route::resource('tipo_produtos', 'TipoProdutoController');
Route::resource('subcategorias', 'SubCategoriaController');
Route::resource('produtos', 'ProdutoController');
Route::resource('loteproduto', 'LoteProdutoController');
});
Route::get('/', [
'uses' => 'Dashboard@index',
'as' => 'dashboard.index'
]);
and in my controllers
added this constructor:
public function __construct()
{
$this->middleware('auth');
}
When I try to enter a page this error occurs: call_user_func_array() expects Parameter 1 to be a Valid callback, class 'Illuminate Auth Sessionguard' does not have a method 'Routes'
What can this be ?