<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as'         => config('admin.route.prefix').'.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

});

require __DIR__.'/Routes/article.php';
require __DIR__.'/Routes/category.php';
require __DIR__.'/Routes/link.php';
require __DIR__.'/Routes/advert.php';
require __DIR__.'/Routes/staff.php';
require __DIR__.'/Routes/leader.php';
