<?php

namespace Modules\TeamplateDirectoryName\Providers;

use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
{

    public function map()
    {
        $this->registerWebRoutes();
    }

    protected function registerWebRoutes()
    {
        //Add Web Routes with web Guard
        Route::middleware('web')
            //Set Default Controllers Namespace
            ->namespace('Modules\\TeamplateDirectoryName\\Http\\Controllers')
            ->group(app_path('Modules/TeamplateDirectoryName/Routes/web.php'));
    }
}