2FAuth/app/Providers/AppServiceProvider.php

44 lines
912 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Resources\Json\JsonResource;
use Laravel\Passport\Console\ClientCommand;
use Laravel\Passport\Console\InstallCommand;
use Laravel\Passport\Console\KeysCommand;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Blade::withoutComponentTags();
Schema::defaultStringLength(191);
JsonResource::withoutWrapping();
$this->commands([
InstallCommand::class,
ClientCommand::class,
KeysCommand::class,
]);
}
}