I'm creating an advert like this
public function store(Request $request)
{
$advert = PropertyAdvertisement::create($request->all());
return response()->json($advert);
}
What is the best way to attach a user_id on the advert model?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HUcpmO
via IFTTT
Aucun commentaire:
Enregistrer un commentaire