27 lines
450 B
PHP
27 lines
450 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Facades\DataTable\DataTable;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class DataTableServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->bind('datatable', function () {
|
|
return new DataTable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
}
|
|
}
|