Mage2\Catalog\Controllers\Admin\ProductController::create PHP Method

create() public method

Show the form for creating a new resource.
public create ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function create()
    {
        $websites = Website::pluck('name', 'id');
        $categories = $this->categoryHelper->getCategoryOptions();
        $productAttributes = ProductAttribute::all();
        return view('admin.catalog.product.create')->with('productAttributes', $productAttributes)->with('categories', $categories)->with('websites', $websites);
    }