Add (article): ai gen, front views

This commit is contained in:
2023-09-24 22:53:40 +08:00
parent 18705bd5e4
commit 322d680961
115 changed files with 9710 additions and 201 deletions

View File

@@ -35,6 +35,10 @@ public function boot(): void
Route::middleware('web')
->group(base_path('routes/web.php'));
Route::middleware('web')
->prefix('tests')
->group(base_path('routes/tests.php'));
});
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Providers;
use App\Views\Composers\ParentCategoryComposer;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ViewServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// Using class based composers...
View::composer('front.layouts.partials.nav', ParentCategoryComposer::class);
}
}