view 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
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/views/components' => resource_path('views/components'),
			$publish_path.'/vite.config.js' => base_path(),
		]);

		foreach (glob(base_path('routes/resources/*.php')) as $routeFile) {
            $this->loadRoutesFrom($routeFile);
     }

	}
}