app/Http/Controllers/CategoryController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $category=Category::getAllCategory();
        return view('backend.category.index')->with('categories',$category);
    }
public function index ( ) { $ category = Category :: getAllCategory ( ) ; return view ( 'backend.category.index' ) -> with ( 'categories' , $ category ) ; }
Display a listing of the resource.
Display a listing of the resource .
// return $category;