Support the ongoing development of Laravel.io →
Installation Configuration Security
Last updated 1 year ago.
0

By using authorize middleware like:


$router->group(['middleware' => 'auth'], function($router)
    {
    Route::get('login', 'Auth\AuthController@getLogin');
    Route::post('loggin', 'Auth\AuthController@postLogin');
        Route::get('pedit', array('uses' => 'PetsController@petedit'));
        Route::post('pupdate', array('uses' => 'PetsController@pupdate'));
    });

There are previous answers. Also there's a free Laracast on authorize.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.