mardi 31 octobre 2017

Data not storing in the DB [Laravel 5.5]

I'm using Laravel 5.5. I wanted to store my data in the DB, but when i try to do it - nothing is happening. Here is my MarketController code

public function store(Request $request)
{


    $this->validate($request, [
        'name' => 'required|unique:markets|max:255',
        'website' => 'required',
        'city' => 'required',
    ]);
    Market::create($request->all());
    return redirect('markets'); 
}

And here is index.blade.php code

<h1><a href="">Add Market</a></h1>

Nothing happens. Please, help. Thank U!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire