app/Http/Controllers/ProductController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View|\Illuminate\Http\Response
     */
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        $data = [
          'product'=>Product::all(),
        ];
        return view('DashboardPage.Product.index',compact('data'));
    }
public function index ( ) { $ data = [ 'product' => Product :: all ( ) , ] ; return view ( 'DashboardPage.Product.index' , compact ( 'data' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//