File uploads is one of the most important functions on the internet, and we have bigger files nowadays, which means it’s not enough to have simple input fields – we need AJAX and processing file upload “in the background”. Here I will show you a simple example of that in Laravel 5.
Recently I’ve got some inspiration, watching video series or so-called “vlogs” by entrepreneurs like Gary Vaynerchuk. So decided to start something like that in Laravel world – a DAILY video series (except weekends). Short 5-10 minute episodes where I will share my thoughts about various topics from Laravel and web-dev business.
Laravel has a lot of useful functions in the core, one of them is a simple pagination for your table list of entries. Let’s see how it works.
File upload is one of the most commonly used features in web-projects. And it seems pretty easy – form, submit,
From time to time I write short tips about Laravel, and one of the most popular topics is Eloquent. It has so many “hidden” or poorly documented functionality, one of those is filtering parents by whether they have or don’t have children. Let’s see an example.
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.