app/Http/Controllers/__Old__/__ProductController.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(Request $request)
    {
        $products = Product::orderBy('title','ASC')->get();
        return view('products.index',compact('products'));
    }
public function index ( Request $ request ) { $ products = Product :: orderBy ( 'title' , 'ASC' ) -> get ( ) ; return view ( 'products.index' , compact ( 'products' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .