-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLaraExtjsServiceProvider.php
More file actions
73 lines (61 loc) · 2.05 KB
/
LaraExtjsServiceProvider.php
File metadata and controls
73 lines (61 loc) · 2.05 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace Webplusm\LaraExtjs;
use Illuminate\Support\ServiceProvider;
class LaraExtjsServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'webplusm');
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'webplusm');
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
// $this->loadRoutesFrom(__DIR__.'/routes.php');
// Publishing is only necessary when using the CLI.
if ($this->app->runningInConsole()) {
// Publishing the configuration file.
$this->publishes([
__DIR__.'/../config/laraextjs.php' => config_path('laraextjs.php'),
], 'laraextjs.config');
// Publishing the views.
/*$this->publishes([
__DIR__.'/../resources/views' => base_path('resources/views/vendor/webplusm'),
], 'laraextjs.views');*/
// Publishing assets.
/*$this->publishes([
__DIR__.'/../resources/assets' => public_path('vendor/webplusm'),
], 'laraextjs.views');*/
// Publishing the translation files.
/*$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/webplusm'),
], 'laraextjs.views');*/
// Registering package commands.
// $this->commands([]);
}
}
/**
* Register any package services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/laraextjs.php', 'laraextjs');
// Register the service the package provides.
$this->app->singleton('laraextjs', function ($app) {
return new LaraExtjs;
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return ['laraextjs'];
}
}