Laravel Eloquent Query Issue with checking data through relationship
I have a problem with retrieving the data from Users table: User: -id int -name string -compartment_id int This is related with compartments table: Compartment: -id int -name string -country_id int Which is related to countries table: Country: -id int…