-
Notifications
You must be signed in to change notification settings - Fork 53
/
TournamentsServiceProvider.php
40 lines (34 loc) · 1.28 KB
/
TournamentsServiceProvider.php
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 Xoco70\LaravelTournaments;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
class TournamentsServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @param Router $router
*
* @return void
*/
public function boot()
{
$viewPath = __DIR__.'/../resources/views';
$this->loadViewsFrom($viewPath, 'laravel-tournaments');
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
$this->loadTranslationsFrom(__DIR__.'/../translations', 'laravel-tournaments');
$this->publishes([__DIR__ . '/../database/seeders' => $this->app->databasePath().'/seeders'], 'laravel-tournaments');
$this->publishes([__DIR__.'/../database/factories' => $this->app->databasePath().'/factories'], 'laravel-tournaments');
$this->publishes([__DIR__.'/../resources/assets' => public_path('vendor/laravel-tournaments')], 'laravel-tournaments');
$this->publishes([__DIR__.'/../config/laravel-tournaments.php' => config_path('laravel-tournaments.php')], 'laravel-tournaments');
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
$this->app->make(DBHelpers::class);
}
}