2023-06-12 15:31:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Pagination\Paginator;
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2023-06-16 12:04:04 +02:00
|
|
|
use Illuminate\Support\Facades\View;
|
2023-06-12 15:31:21 +02:00
|
|
|
|
|
|
|
|
class ViewServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
|
|
|
|
// Set default view of the paginator.
|
|
|
|
|
Paginator::defaultView('modules.pagination');
|
2023-06-16 12:04:04 +02:00
|
|
|
|
|
|
|
|
View::share('nonce', $nonce = \uniqid());
|
2023-06-12 15:31:21 +02:00
|
|
|
}
|
|
|
|
|
}
|