2015-06-01 15:43:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
2014-08-11 10:13:20 -05:00
|
|
|
|
2014-09-30 21:13:58 -05:00
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
2019-09-10 17:26:00 +02:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2014-08-11 10:13:20 -05:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
class RouteServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
2019-12-10 08:59:27 -06:00
|
|
|
/**
|
|
|
|
|
* The path to the "home" route for your application.
|
|
|
|
|
*
|
2020-06-24 12:47:56 -05:00
|
|
|
* Used by Laravel's authentication services to properly redirect users.
|
|
|
|
|
*
|
2019-12-10 08:59:27 -06:00
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public const HOME = '/home';
|
|
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* Define your route model bindings, pattern filters, etc.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2016-07-11 15:44:50 -05:00
|
|
|
public function boot()
|
2015-02-22 20:47:03 -06:00
|
|
|
{
|
2020-07-14 14:00:47 -05:00
|
|
|
$this->routes(function () {
|
|
|
|
|
Route::middleware('web')
|
|
|
|
|
->group(base_path('routes/web.php'));
|
2016-07-14 09:36:17 -05:00
|
|
|
|
2020-07-14 14:00:47 -05:00
|
|
|
Route::prefix('api')
|
|
|
|
|
->middleware('api')
|
|
|
|
|
->group(base_path('routes/api.php'));
|
|
|
|
|
});
|
2015-02-22 20:47:03 -06:00
|
|
|
}
|
2014-09-15 09:12:48 -03:00
|
|
|
}
|