how can I separate this join table? because when I fetch the data all fields are combined. how can i separate table to table as an array? in my case all fields on my two tables are combining here is my code.
$getairId = DB::table('aircrafts')
->join('movies','movies.aircraft_id','=','aircrafts.aircraft_id')
->join('ads','ads.aircraft_id','=','aircrafts.aircraft_id')
->select('movies.*','ads.*')
->where('aircrafts.aircraft_id','=', $airid)
->get();