2019-05-20 07:37:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2020-10-12 08:05:33 +02:00
|
|
|
use Illuminate\Support\Facades\Blade;
|
2020-12-01 09:19:58 +01:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2019-05-20 07:37:41 +02:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2021-09-17 23:50:00 +02:00
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
2022-03-28 13:45:19 +02:00
|
|
|
use Laravel\Passport\Console\ClientCommand;
|
|
|
|
use Laravel\Passport\Console\InstallCommand;
|
|
|
|
use Laravel\Passport\Console\KeysCommand;
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2020-10-12 08:05:33 +02:00
|
|
|
|
2019-05-20 07:37:41 +02:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2020-10-12 08:05:33 +02:00
|
|
|
Blade::withoutComponentTags();
|
2022-04-04 09:23:23 +02:00
|
|
|
|
|
|
|
// Limited to 191 to prevent index length issue with MyISAM and utf8mb4_unicode_ci
|
|
|
|
// when using WAMP (WAMP uses MyISAM as default engine in place of INNOdb)
|
2020-12-01 09:19:58 +01:00
|
|
|
Schema::defaultStringLength(191);
|
2022-04-04 09:23:23 +02:00
|
|
|
|
2021-09-17 23:50:00 +02:00
|
|
|
JsonResource::withoutWrapping();
|
2022-03-28 13:45:19 +02:00
|
|
|
|
|
|
|
$this->commands([
|
|
|
|
InstallCommand::class,
|
|
|
|
ClientCommand::class,
|
|
|
|
KeysCommand::class,
|
|
|
|
]);
|
2019-05-20 07:37:41 +02:00
|
|
|
}
|
|
|
|
}
|