urlsnail/app/Providers/AppServiceProvider.php

32 lines
720 B
PHP
Raw Normal View History

2024-05-24 20:07:22 +00:00
<?php
namespace App\Providers;
2024-05-25 17:21:34 +00:00
use Illuminate\Pagination\Paginator;
2024-05-24 20:07:22 +00:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
2024-05-25 17:21:34 +00:00
Paginator::defaultView('pagination.default');
Paginator::defaultSimpleView('pagination.simple-default');
2024-05-26 13:22:40 +00:00
if ($this->app->environment('local')) {
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
$this->app->register(TelescopeServiceProvider::class);
}
2024-05-24 20:07:22 +00:00
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}