comparison src/FrameworkServiceProvider.php @ 2:b44434aaa767

Moving around the components. Made a big step in the right direction with the Builder and named joins being accessible.
author luka
date Wed, 18 Jun 2025 22:28:47 -0400
parents
children e107504fa22c
comparison
equal deleted inserted replaced
1:56d9c64d64aa 2:b44434aaa767
1 <?php
2
3 namespace Wizard\Framework;
4
5 use Illuminate\Support\ServiceProvider;
6
7 class FrameworkServiceProvider extends ServiceProvider {
8 public function register():void
9 {
10 $this->app->bind('db.schema', fn () => \Libraries\MySchema::customizedSchemaBuilder());
11 }
12
13 public function boot(): void {
14 $publish_path = __DIR__.'/../publishable';
15 $this->publishes([
16 $publish_path.'/resources/views/components' => resource_path('views/components'),
17 $publish_path.'/vite.config.js' => base_path(),
18 ]);
19
20 foreach (glob(base_path('routes/resources/*.php')) as $routeFile) {
21 $this->loadRoutesFrom($routeFile);
22 }
23
24 }
25 }