X

Create New Item

File Folder

X

Search Results

File "RouteServiceProvider.stub"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/joynala/maker/src/Lib/Stubs/RouteServiceProvider.stub
File size: 706 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

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

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

    /**
     * Define your route model bindings, pattern filters, and other route configuration.
     */
    public function boot(): void
    {
       $this->routes(function () {
            Route::get('/', function(){
                  return to_route('{route}');
            });
       });
    }
}