generated from liutk/owl-admin-base
29 lines
558 B
PHP
29 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\View;
|
|
use App\Models\Article;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot()
|
|
{
|
|
\Schema::defaultStringLength(191);
|
|
View::share('services', Article::where('category', 'services')->show()->recommend()->sort()->get());
|
|
}
|
|
}
|