%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/yajra/laravel-datatables-html/src/ |
Upload File : |
<?php
namespace Yajra\DataTables;
use Illuminate\Support\ServiceProvider;
class HtmlServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot(): void
{
$this->loadViewsFrom(__DIR__.'/resources/views', 'datatables');
if ($this->app->runningInConsole()) {
$this->publishAssets();
}
}
/**
* Publish datatables assets.
*/
protected function publishAssets(): void
{
$this->publishes([
__DIR__.'/resources/views' => base_path('/resources/views/vendor/datatables'),
__DIR__.'/resources/config/config.php' => config_path('datatables-html.php'),
], 'datatables-html');
}
/**
* Register the service provider.
*
* @return void
*/
public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/resources/config/config.php', 'datatables-html');
$this->app->bind('datatables.html', function () {
return $this->app->make(Html\Builder::class);
});
}
}