diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FrameworkServiceProvider.php	Wed Jun 18 22:28:47 2025 -0400
@@ -0,0 +1,25 @@
+<?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);
+     }
+
+	}
+}