jeudi 3 septembre 2015

Return the comment for non deleted posts

How can i get only the locations for the non soft deleted merchants.

  • I have Location and Merchant models.
  • each merchant has many locations.

when i get the locations :

$locations = \App\Location::where('merchant_id', $merchantId)->get();

it returns locations even if the merchant is soft deleted !

How can i prevent that, so it won't return the locations if the merchant is soft deleted ?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1JOL53u
via IFTTT

Aucun commentaire:

Enregistrer un commentaire