app/Http/Controllers/Admin/CategoriesController.php
// ======= view the page content all categories =======
view the page content all categories
view the page content all categories
public function index()
    {
    	$cat = Category::all();
    	return view('admin.category.allcategories', compact('cat'));
    }
public function index ( ) { $ cat = Category :: all ( ) ; return view ( 'admin.category.allcategories' , compact ( 'cat' ) ) ; }
view the page content all categories
view the page content all categories