app/Http/Controllers/Avalon/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()
    {
        $categories = Category::orderBy('created_at', 'desc')->get();
        return view('avalon.category.index', compact('categories'));
    }
public function index ( ) { $ categories = Category :: orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return view ( 'avalon.category.index' , compact ( 'categories' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .