JSON response provider

This commit is contained in:
2021-03-29 23:47:55 +01:00
parent 14a8e9e9d5
commit 6d94263ede
6 changed files with 168 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Providers;
use App\Helpers\JSON;
use Illuminate\Support\ServiceProvider;
class JSONProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
App::bind('json', function () {
return new JSON();
});
}
}