Another “hidden gem” of Eloquent. Let’s imagine that you want to query all rows from the table and also one related row – not all of them, but the newest one. Apparently, it’s pretty easy.
A little later than most “Year in Review” posts but it took some time to manually pick the most-clicked articles from our newsletter, there were 1000+ useful links from all over the web. Also I will mention authors with links to their profiles – let’s thank them for their effort! So, what topics were the most popular in 2016?
Artisan Tinker is a nice way to quickly check some commands without making changes the code. You launch artisan tinker and can do things like database queries, check if some functions are working etc. But there’s one thing to keep in mind.
Some Laravel functions are not mentioned or emphasized in the official docs, especially if they change from version to version. One of these examples is simple where() in Eloquent – what do you think, does it compare in a “strict” or “loose” way?
Quite often developers and agencies get tired of client work and start creating their own products: internal tools, packages, maybe
Recently I’ve found a small detail in Laravel documentation which I want to share with you. Apparently, it’s possible to filter pivot tables additionally, if needed. Let me show you how.
Web-development is not all serious – there are some fun activities too. So let’s have a break from mega-urgent code writing and get some inspiration. From our beloved Artisan – with a command “inspire”.
In recent years, Laracasts has become a no.1 resource for learning Laravel. Also, there’s a really active discussion forum on the website, so we decided to chat with one of the most active members there. Bobby Bouwmann has almost 1000 “Best Reply” awards on the forum, which is a huge number. So what is it like to be so active on Laracasts? Let’s find out.
Let’s imagine a simple situation – you need to write an Eloquent query and order the result by the difference of two columns. Or some other calculation. Time to apply a raw query!