HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/ASmits/kemi.nl/app/Providers/RouteServiceProvider.php
<?php

namespace App\Providers;

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

class RouteServiceProvider extends ServiceProvider
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\KommaApp';

    /**
     * Define your route model bindings, pattern filters, etc.
     *
     * @return void
     */
    public function boot()
    {
        //

        parent::boot();
    }

    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $this->mapApiRoutes();

        $this->mapWebRoutes();

        //
    }

    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::group([
            'middleware' => ['web'],
            'namespace' => $this->namespace,

        ], function ($router) {
            require base_path('routes/web.php');

            //Extra routes
            require app_path('KommaApp/Kms/KmsRoutes.php');
            require app_path('KommaApp/Kms/KmsApiRoutes.php');
            require app_path('KommaApp/Sites/siteRoutes.php');
            require app_path('KommaApp/Pages/pageRoutes.php');
            require app_path('KommaApp/Machines/machineRoutes.php');
            require app_path('KommaApp/Jobs/jobRoutes.php');
            require app_path('KommaApp/Posts/postRoutes.php');
            require app_path('KommaApp/Users/userRoutes.php');
            require app_path('KommaApp/Projects/projectRoutes.php');
            require app_path('KommaApp/Sitemap/sitemapRoutes.php');

            // Form Routes
            require app_path('KommaApp/Forms/formRoutes.php');

            // Old routes from previous website
            require base_path('routes/oldRoutes.php');
        });

        Route::group([
            'middleware' => ['web'],
        ], function ($router) {
            require app_path('KommaApp/Shop/Products/productRoutes.php');
            require app_path('KommaApp/Shop/Categories/categoryRoutes.php');
            require app_path('KommaApp/Documents/documentRoutes.php');
        });
    }

    /**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
    protected function mapApiRoutes()
    {
        Route::prefix('api')
             ->middleware('api')
             ->namespace($this->namespace)
             ->group(base_path('routes/api.php'));
    }
}