Laravel 4 deleting multiple models related by foreign keys
问题 So I have three models and when when one of them dAgency is deleted delete-() I'd like all three to be deleted. The problem is that two of them are being deleted, while the top parent one DemDataSet isn't being deleted. Additionally, when I call: echo "<pre>", dd(dAgency::find(21)->DemographicReport()->DemDataSet()->get()), "</pre>"; I get this error: Call to undefined method Illuminate\Database\Query\Builder::DemDataSet() But when I try: echo "<pre>", dd(dAgency::find(21)->DemographicReport(