Boarding Pass

Current Path : /home/u869455702/domains/mosaiikk.com/public_html/app/Providers/
Upload File :
Current File : /home/u869455702/domains/mosaiikk.com/public_html/app/Providers/RouteServiceProvider.php

<?php

namespace App\Providers;

use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;

class RouteServiceProvider extends ServiceProvider
{
    /**
     * The path to your application's "home" route.
     *
     * Typically, users are redirected here after authentication.
     *
     * @var string
     */
    public const HOME = '/admin/dashboard';

    /**
     * Maps route
     */
    public function map(): void
    {
        $sql_path = base_path('update.sql');

        if (config('app.installed') && file_exists($sql_path)) {
            $this->mapUpdateRoutes();
        } elseif (config('app.installed')) {
            $this->mapApiRoutes();
            $this->mapAdminRoutes();
            $this->mapAuthRoutes();
            $this->mapWebRoutes();
        } else {
            $this->mapInstallRoutes();
        }
    }

    /**
     * Define your route model bindings, pattern filters, and other route configuration.
     */
    public function boot(): void
    {
        RateLimiter::for('api', function (Request $request) {
            return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
        });
    }

    /**
     * Map api route
     */
    protected function mapApiRoutes(): void
    {
        Route::middleware('api')
            ->prefix('api')
            ->group(base_path('routes/api.php'));
    }

    /**
     * Map web route
     */
    protected function mapWebRoutes(): void
    {
        Route::middleware('web')
            ->group(base_path('routes/web.php'));
    }

    /**
     * Map auth route
     */
    protected function mapAuthRoutes(): void
    {
        Route::middleware('web', 'inertia:admin')
            ->prefix('auth')
            ->group(base_path('routes/auth.php'));
    }

    /**
     * Map admin route
     */
    protected function mapAdminRoutes(): void
    {
        Route::middleware('web', 'inertia:admin', 'auth')
            ->name('admin.')
            ->prefix('admin')
            ->group(base_path('routes/admin.php'));
    }

    /**
     * Map install route
     */
    protected function mapInstallRoutes(): void
    {
        Route::middleware('web')
            ->group(base_path('routes/install.php'));
    }

    /**
     * Map update route
     *
     * @return void
     */
    protected function mapUpdateRoutes(): void
    {
        Route::middleware('web')
            ->group(base_path('routes/update.php'));
    }
}

Sindabad File Uploader 1.0, Coded By Sindbad EG ~ The Terrorists Not Found
404
Not Found