Wednesday, 15 July 2015

Translate query to Laravel Eloquent Model -


How do I translate the following query into a format that can parse Laravel ?

Select the posts, titles from posts, albums where post. Id !: album. Post_id

now have ORM links

< P> a

So far I have

post with I :: ('album') -> select ('id', 'title') - > Get ();

I do not know how to declare the condition

Please read the docs again, I think If you use a well known ORM, then the biggest reason for its relationship is "yes"

you can query for

An example in a link is just fill in your query and you're done.


No comments:

Post a Comment