app/Http/Controllers/__Old__/__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('name')->get();
        return view ('categories.index')->withCategories($categories);
    }
public function index ( ) { $ categories = Category :: orderBy ( 'name' ) -> get ( ) ; return view ( 'categories.index' ) -> withCategories ( $ categories ) ; }
Display a listing of the resource.
Display a listing of the resource .