I called a table with relationship in controller. I want to print the relationship values in controller. Can any one help me on this. Here i have given below the sample.
TestItem::where('test_id', $testId)->with('testresults')->get();
How i can print the values of testresults in controller
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire