src/Alientronics/FleetanyWebReports/FleetanyWebReportsServiceProvider.php
<?php
namespace Alientronics\FleetanyWebReports;
use Illuminate\Support\ServiceProvider;
/**
* Class FleetanyWebReportsServiceProvider
* @package Alientronics\FleetanyWebReports
*/
class FleetanyWebReportsServiceProvider extends ServiceProvider
{
/**
* @return void
*/
public function boot()
{
$this->publishViews();
$this->publishTranslations();
$this->loadViewsFrom(__DIR__.'/../../views/', 'fleetany-web-reports');
// Routes
if (! $this->app->routesAreCached()) {
require __DIR__.'/../../routes.php';
}
}
/**
* Publish the views files to the application views directory
*/
public function publishViews()
{
$this->publishes([
__DIR__ . '/../../views/' => base_path('/resources/views'),
], 'translations');
}
/**
* Publish the translations files to the application translations directory
*/
public function publishTranslations()
{
$this->publishes([
__DIR__ . '/../../translations/' => base_path('/resources/lang'),
], 'translations');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [];
}
}