i have a table that contains all job offers.. but some have gotten approved by the client.. so i want all those that are approved to not show.. i'm using relations.. i have two tables.. one is where the jobs are (jobs) and the other (applied_jobs) are the ones that someone has applied too and it contains a status column which tells me the status of the job (status) so now assuming a job from (jobs) gets approved in (applied_jobs) how can i make a query that would show all the jobs even those in the (applied_jobs) that don't have their status as true which. i hope you understand
You'll need to show more code then besides just your schema. Like do you have a appliedJob relationship on the Job model? Show your Job model and AppliedJob model.
it's working now... i had {{$jobs->links()}} in the view and the code didn't have paginate on it..
but now its bringing the jobs from the approved_jobs table only.. and not the whole jobs
what i'm trying to do is bring out the whole jobs which would include the ones in the applied_jobs table.. but then it would exclude the ones in the applied_jobs table where the status there is true.. therefore bringing out all the jobs that haven't been assigned true.. the job table doesn't have a status column..