I have the table tbl_relations with columns
id,user_name,relation_name,relation_name_id
relation_name_id is the foreign key referencing id in the same table.
In laravel I will select two inputs from id and need to get the collections of data from input one to till it's reach the second input using foreign key recursive method..is it possible?
This way I need to get the collection