2024-07-03 11:45:15 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2024-07-06 16:56:09 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
2024-07-03 11:45:15 +00:00
|
|
|
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
|
|
|
|
*/
|
|
|
|
|
2024-07-06 16:50:42 +00:00
|
|
|
namespace MillionsMissingFrance\FreescoutRestrictedCustomers;
|
2024-07-03 11:45:15 +00:00
|
|
|
|
2024-07-03 12:02:11 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2024-07-03 11:45:15 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class FreescoutRestrictedCustomersServiceProvider extends ServiceProvider {
|
|
|
|
public function register() {
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
public function boot() {
|
2024-07-03 12:02:11 +00:00
|
|
|
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
|
|
|
|
$this->registerRoutes();
|
2024-07-05 12:18:54 +00:00
|
|
|
$this->loadViewsFrom(__DIR__.'/../resources/views', 'freescout-restricted-customers');
|
2024-07-03 12:02:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function registerRoutes() {
|
|
|
|
Route::group($this->routeConfiguration(), function () {
|
|
|
|
$this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function routeConfiguration() {
|
|
|
|
return [
|
|
|
|
'middleware' => ['web', 'auth', 'roles'],
|
|
|
|
];
|
2024-07-03 11:45:15 +00:00
|
|
|
}
|
|
|
|
}
|