app/Http/Controllers/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()
    {
        $pro = Product::where('active',1)->get();
        return view('admin.products.index',compact('pro'));
    }
public function index ( ) { $ pro = Product :: where ( 'active' , 1 ) -> get ( ) ; return view ( 'admin.products.index' , compact ( 'pro' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .