A
A
Archond2018-11-30 07:33:51
Laravel
Archond, 2018-11-30 07:33:51

Why is authorization required in non-wrapped routes?

<?php

Route::get('front', '[email protected]');
Route::post('front','[email protected]');
Route::get('/', function ()
{
    return view('welcome');
});
Route::group(['middleware' => ['web']], function ()
{
  Route::auth();
  Route::group(['middleware' => ['auth'] ], function ()
  {
           ....
        }
       ...

I have authorization, and routes available to authorized users, and routes available only to the administrator
With the separation of routes, visible after authorization, there are no problems, but for some reason the routes that are not wrapped under the middleware (the first 2 routes in the provided code still fall under 'auth')
what could be the problem? where else can auth be called so that it captures the entire routes file?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question