photo/app/Providers/AppServiceProvider.php

38 lines
627 B
PHP
Raw Normal View History

2016-06-20 23:35:59 +10:00
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
2016-06-20 23:35:59 +10:00
use Illuminate\Support\ServiceProvider;
2019-11-08 23:08:34 +11:00
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Pagination\Paginator;
2019-11-08 23:08:34 +11:00
2019-11-08 23:51:47 +11:00
use App\Models\{Photo,Video};
2016-06-20 23:35:59 +10:00
class AppServiceProvider extends ServiceProvider
{
2024-08-25 18:26:29 +10:00
use DispatchesJobs;
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
Route::model('po',Photo::class);
Route::model('vo',Video::class);
Paginator::useBootstrapFour();
2024-08-25 18:26:29 +10:00
}
2019-11-09 13:52:04 +11:00
}