Greate video. Is it possible to use class_name instead of class_id when sending request to api/section? In my project I have a database where cities and provinces are in one table so I can't use the id of the row. Can you show me how can I resolve this? Thanks in advance
@TapanSharma.3 жыл бұрын
section?class_name="name" and in the controller, Class::where('name',$name)->first();
@yasithsfonseka76583 жыл бұрын
Hey thanks a lot. Could u please create a video after get the id of the another table i need to show the name instead of the id. Could u please tell how to do that please.
@TapanSharma.3 жыл бұрын
I didn't understand, could u please explain it properly?
@markmosobo63783 жыл бұрын
just learnt about using resources here....this whole thing was giving me serious headache