nasrulhazim
12/13/2016 - 8:10 AM

Manage Routes

Manage Routes

<?php

namespace App\Routes;

use Illuminate\Support\Facades\Route;

/**
 *    Setup Routes for User
 */
class User
{
    public static function routes()
    {
        Route::group([
            'prefix' => 'v1/admin',
            'middleware' => ['web', 'auth'],
        ], function () {
            Route::resource('users', 'UserController');
        });
    }
}