Mercurial > packages > framework
view src/FrameworkServiceProvider.php @ 3:e107504fa22c
New assets related to BS5
| author | luka |
|---|---|
| date | Mon, 23 Jun 2025 20:20:31 -0400 |
| parents | b44434aaa767 |
| children | 84c75d9d90be |
line wrap: on
line source
<?php namespace Wizard\Framework; use Illuminate\Support\ServiceProvider; class FrameworkServiceProvider extends ServiceProvider { public function register():void { $this->app->bind('db.schema', fn () => \Libraries\MySchema::customizedSchemaBuilder()); } public function boot(): void { $publish_path = __DIR__.'/../publishable'; $this->publishes([ $publish_path.'/resources' => resource_path(), $publish_path.'/vite.config.js' => base_path('vite.config.js'), $publish_path.'/package.json' => base_path('package.json'), ]); foreach (glob(base_path('routes/resources/*.php')) as $routeFile) { $this->loadRoutesFrom($routeFile); } } }
