Model1::where('postID',$postID)
->join('database2.table2 as db2','Model1.id','=','db2.id')
->select(['Model1.*','db2.firstName','db2.lastName'])
->orderBy('score','desc')
->get();
Laravel blogs, packed with expert tips, step-by-step tutorials, and best practices for effective web development. Unlock the power of Laravel with our in-depth articles and stay ahead in the world of modern web application development.
1) The create() Method The create() method is a powerful and convenient way to store data in your Laravel application. It is typically use...
No comments:
Post a Comment