Add (category)
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
use App\Models\Category;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class ParentCategoryComposer
|
||||
class CategoryComposer
|
||||
{
|
||||
public function compose(View $view)
|
||||
{
|
||||
$view->with('parent_categories', Category::whereNull('parent_id')->get());
|
||||
$view->with('categories', Category::get());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user