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()
    {
        $data['categories'] = Category::get();
        return view('admins.categories.index')->with($data);
    }
public function index ( ) { $ data [ 'categories' ] = Category :: get ( ) ; return view ( 'admins.categories.index' ) -> with ( $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .