mercredi 28 mars 2018

How to add multiple product without refreshing page in laravel

I am creating campaign.
In that campaign i want to add multiple products without refreshing page and store the detail of that products in database.

enter image description here

ProductCatalogController :

public function storeProduct(Request $request)
    {

        $this->validate($request, $this->rules);

        $input=Input::all();
        var_dump($input);
        exit();
        $campaign_product=ProductCatalog::create($input);
        return redirect('product_catalog');
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire