generated from liutk/owl-admin-base
32 lines
761 B
PHP
32 lines
761 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());
|
|
view::share('conect_phone', settings()->get('conect_phone', ''));
|
|
view::share('hot_keywords', settings()->get('hot_keywords', ''));
|
|
view::share('current_nav', request()->path());
|
|
}
|
|
}
|