mercredi 8 mai 2019

laravel / How to store the random number with the requests in the database

I have a field in the in_out model that I want to insert with the requests in the database?

public function store(Request $request)
{


  $validatedData = $request->validate([
     'name' => 'required|max:255',

                 'type' => 'required|max:255',
 ]);


 $add = in_out::create($validatedData);




}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire