1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Providers;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Register any application services.
- */
- public function register(): void
- {
- //添加自定义辅助函数
- require_once __DIR__ . '/../Helpers/helpers.php';
- }
- /**
- * Bootstrap any application services.
- */
- public function boot(): void
- {
- //
- }
- }
|