23 lines
484 B
PHP
23 lines
484 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Pagination\Paginator;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
class ViewServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// Set default view of the paginator.
|
|
Paginator::defaultView('modules.pagination');
|
|
|
|
View::share('nonce', $nonce = \uniqid());
|
|
}
|
|
}
|