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()
    {
        Session::forget("productImages");
        self::$viewData["products"] = Products::all();
        self::$viewData["pageTitle"] .= 'Products';
        return view("admin.products", self::$viewData);
    }
public function index ( ) { Session :: forget ( " productImages " ) ; self :: $ viewData [ " products " ] = Products :: all ( ) ; self :: $ viewData [ " pageTitle " ] .= 'Products' ; return view ( " admin.products " , self :: $ viewData ) ; }
Display a listing of the resource.
Display a listing of the resource .