Set JSON resources without wrapping

This commit is contained in:
Bubka 2021-09-17 23:50:00 +02:00
parent a2c67d1558
commit f22f389487

View File

@ -5,6 +5,7 @@
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Resources\Json\JsonResource;
class AppServiceProvider extends ServiceProvider
@ -28,5 +29,6 @@ public function boot()
{
Blade::withoutComponentTags();
Schema::defaultStringLength(191);
JsonResource::withoutWrapping();
}
}