Mercurial > packages > framework
diff src/FrameworkServiceProvider.php @ 4:84c75d9d90be
Changing usage to be bootstrap 5, not everything is reviewed but it's been started
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:33:35 -0400 |
| parents | e107504fa22c |
| children |
line wrap: on
line diff
--- a/src/FrameworkServiceProvider.php Mon Jun 23 20:20:31 2025 -0400 +++ b/src/FrameworkServiceProvider.php Tue Aug 19 20:33:35 2025 -0400 @@ -3,24 +3,29 @@ namespace Wizard\Framework; use Illuminate\Support\ServiceProvider; +use Illuminate\Support\Facades\Blade; +use \Wizard\Framework\Database\MySchema; -class FrameworkServiceProvider extends ServiceProvider { - public function register():void - { - $this->app->bind('db.schema', fn () => \Libraries\MySchema::customizedSchemaBuilder()); - } +class FrameworkServiceProvider extends ServiceProvider +{ + public function register(): void + { + $this->app->bind('db.schema', fn () => 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'), - ]); + 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'), + $publish_path.'/stubs' => base_path('stubs'), + ]); - foreach (glob(base_path('routes/resources/*.php')) as $routeFile) { + foreach (glob(base_path('routes/resources/*.php')) as $routeFile) { $this->loadRoutesFrom($routeFile); - } + } - } + } }
