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/fire-tech/fire-tech.nl/app/Providers/RouteServiceProvider.php
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use App\KommaApp\Pages\Models\Page;
use App\KommaApp\Users\Models\User;


class RouteServiceProvider extends ServiceProvider
{
    /**
     * 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']], function ($router) {
            Route::group(['middleware' => ['auth']], function() {
                //Place route files here which contain routes which all only accept authenticated users
                require app_path('KommaApp/Kms/kmsRoutes.php');
                require app_path('KommaApp/Kms/kmsApiRoutes.php');
                require app_path('KommaApp/Kms/Transfer/transferRoutes.php');
                require app_path('KommaApp/Users/userRoutes.php');
                require app_path('KommaApp/Images/imagesRoutes.php');
                require app_path('KommaApp/Sites/siteRoutes.php');
            });

            //Place unauthenticated route files here. and place route files here which
            //contain both authenticated (using auth middleware) or unauthenticated routes
            require base_path('routes/authenticationRoutes.php');
            require app_path('KommaApp/Documents/documentRoutes.php');
            require app_path('KommaApp/Sitemap/sitemapRoutes.php');
            require base_path('routes/oldRoutes.php');
            require app_path('KommaApp/Forms/formRoutes.php');
            require app_path('KommaApp/Pages/pageRoutes.php');
            require app_path('KommaApp/Course/courseRoutes.php');
            require app_path('KommaApp/Students/studentRoutes.php');
            require app_path('KommaApp/Subscription/subscriptionRoutes.php');
            require app_path('KommaApp/Services/serviceRoutes.php');
            require app_path('KommaApp/Projects/projectRoutes.php');
            require app_path('KommaApp/Clients/clientRoutes.php');
            require app_path('KommaApp/Posts/postRoutes.php');
        });
    }

    /**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
    protected function mapApiRoutes()
    {
        Route::group([
            'middleware' => 'api',
            'namespace' => 'App\KommaApp',
            'prefix' => 'api',
        ], function ($router) {
            require base_path('routes/api.php');
        });
    }
}