Add (category)

This commit is contained in:
2023-11-20 02:50:16 +08:00
parent 36f0588ef8
commit 3ed6215b16
3 changed files with 12 additions and 5 deletions

View File

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