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

@@ -0,0 +1,14 @@
<?php
namespace App\Views\Composers;
use App\Models\Category;
use Illuminate\View\View;
class ParentCategoryComposer
{
public function compose(View $view)
{
$view->with('parent_categories', Category::whereNull('parent_id')->get());
}
}