![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/Corals/modules/Medad/Providers/ |
<?php namespace Corals\Modules\Medad\Providers; use Corals\Modules\Medad\Http\Middleware\IsCompanyConfirmed; use Corals\Modules\Medad\Http\Middleware\IsCompanyTypeSelected; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; class MedadRouteServiceProvider 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 = 'Corals\Modules\Medad\Http\Controllers'; /** * Define your route model bindings, pattern filters, etc. * * @return void */ public function boot() { // parent::boot(); if (class_exists('Breadcrumbs')) { require __DIR__ . '/../routes/medad_breadcrumbs.php'; } } /** * 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::middleware(['web', IsCompanyTypeSelected::class, IsCompanyConfirmed::class]) ->prefix('medad') ->namespace($this->namespace) ->group(__DIR__ . '/../routes/web.php'); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapApiRoutes() { Route::prefix('api/' . config('corals.api_version') . '/medad') ->middleware(['api', IsCompanyConfirmed::class, IsCompanyTypeSelected::class]) ->namespace($this->namespace . '\API') ->group(__DIR__ . '/../routes/api.php'); } }