Skip to main content

All Tutorials

In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.

Tutorial Free

Routes file: redirect "everything else" to homepage

We all know that file app/Http/routes.php is used for listing all possible routes we need for our application. But what if we need to define a rule for "everything else"? Like, we have a list of our routes, and if the URL doesn't match any of those rules - we want to, for example, redirect to homepage instead of showing 404 error.

Tutorial Free

Laravel log - single file or files by date?

Laravel logging mechanism is pretty simple - it writes all the errors to a file at /storage/logs/laravel.log. It's convenient until the file gets bigger. And then you have a problem to find a bug from yesterday or some days ago. How can you solve this?

Tutorial Free

How secure is Laravel?

After a while I'm back to my Laravel Business video channel, and topic of this 5-minute episode is security, for Laravel projects and beyond.

Tutorial Free

Why you shouldn't set global variables in Base Controller

Everyone had a situation when one variable had to be accessible in every view file, for some of us it was $user, for others it was $currentPage or any other case dependent variable. And some of you use Base Controller for that. Let me show you why it's wrong.

Tutorial Free

Top 20 Laravel People to Follow Online

While reading Twitter feed everyday, I see more and more new people in Laravel community. At the same time there are the most active ones who deserve following and thanking for their input to the community. So I decided to list them all with links to their work - you need to know our heroes, and also interesting to dive into their past and what they had done throughout their careers.

Tutorial Free

How to check current URL or Route

Quite often you have a need to check current URL or route and show/hide some element and do some action. Here I will show several ways to do it.

Tutorial Free

Survey: what do you use as Laravel admin-panel?

Hey guys, need your help and opinion. While working on my QuickAdmin package vision, decided to "get outside the building" and talk to people - what do you actually need? What is the pain point? Is there a problem at all?

Tutorial Free

Send Mailchimp email campaigns from Laravel

These days more and more clients ask for integrations with external marketing services, like sending email via Mailchimp. Since I have that built in my newsletter service called LinksLetter (it helps to send these emails every Thursday), I want to show you how simple it is.

Tutorial Free

10 less-known Laravel Packages: May 2016

A new monthly tradition continues - here are 10 packages I've found this month, thanks mostly to Twitter and Laravel News blog. Uploading this as a SlideShare presentation, which I will present at my local Laravel meetup tomorrow, but you guys will be the first ones to see it. Also I will provide the links to actual packages below. Enjoy!

Tutorial Free

How to "artificially" add values to Request array

A few times I encountered a situation - a store() or update() method with Request parameter, but I needed to add some additional value to the request before calling Eloquent functions. So how to do that? Apparently, pretty easy.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.