-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDatagridServiceProvider.php
More file actions
40 lines (33 loc) · 1.02 KB
/
Copy pathDatagridServiceProvider.php
File metadata and controls
40 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php namespace Aginev\Datagrid;
use Illuminate\Support\ServiceProvider;
class DatagridServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$namespace = 'datagrid';
// Tell Laravel where the views for a given namespace are located.
$this->loadViewsFrom(__DIR__ . '/../views', $namespace);
// Publish package views
$this->publishes([
__DIR__ . '/../views/datagrid.blade.php' => resource_path('views/vendor/' . $namespace . '/datagrid.blade.php'),
], 'views');
// Publish package config
$this->publishes([
__DIR__ . '/../config/datagrid.php' => config_path('datagrid.php'),
], 'config');
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../config/datagrid.php', 'datagrid');
}
}