mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-01 19:36:07 +02:00
Set JSON resources without wrapping
This commit is contained in:
parent
a2c67d1558
commit
f22f389487
@ -5,6 +5,7 @@
|
|||||||
use Illuminate\Support\Facades\Blade;
|
use Illuminate\Support\Facades\Blade;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
use Illuminate\Http\Resources\Json\JsonResource;
|
||||||
|
|
||||||
|
|
||||||
class AppServiceProvider extends ServiceProvider
|
class AppServiceProvider extends ServiceProvider
|
||||||
@ -28,5 +29,6 @@ public function boot()
|
|||||||
{
|
{
|
||||||
Blade::withoutComponentTags();
|
Blade::withoutComponentTags();
|
||||||
Schema::defaultStringLength(191);
|
Schema::defaultStringLength(191);
|
||||||
|
JsonResource::withoutWrapping();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user