Tutorials

Laravel: Login and Register forms on the same page

Quite often, especially in e-shop projects, you can see a page to login or register before finishing the purchase. But Laravel has these two routes as separate login and register pages. So how to merge them together and avoid conflicts?

How to Structure Routes in Large Laravel Projects?

Imagine a Laravel project with 100+ routes, separate section for guest, users, administrators etc. Do you really want to keep it all in one file? How can you group them, add prefixes to URLs? Let's see what options we have.

New Course: Laravel PHPUnit Testing for Beginners

I want to invite you to my new online-course for those who always wanted to start automated testing with PHPUnit, but "never had time". In this short 90-minutes course, I will give you practical examples and show you that it's really easy to get started with testing.

40 Additional Laravel Validation Rules

Laravel Validation system has 60+ validation rules available, but what if you want something extra? You can easily create your own validation rule, or use something already available on the internet. Let's take a look.

Laravel Auth: After-Registration Redirect to Previous (Intended) Page

Laravel Auth features a function to redirect logged-in user to the same page they were visiting before. So, for example, if you...

Laravel API 404 Response: Return JSON Instead of Webpage Error

If you're building a Laravel project with both Web and API sides, you need to customize error messages for each of them separately. In web-view there should be error pages, and API exceptions should return JSON with status codes. How to handle it? I will show you an example with case of Model Not Found 404.

Advanced Laravel: 14 Topics and Links to Learn Them

Quite often I get a question from junior developers like "how to get better at Laravel", and there's so much to study...

Calling Eloquent from Blade: 6 Tips for Performance

One of the most common performance issues I've seen in Laravel is using Eloquent methods and relationships from Blade, creating unnecessary extra loops and queries. In this article, I will show different scenarios and how to handle them effectively.

New Online Course: Datatables in Laravel

This week I've launched a new online course called Datatables in Laravel, and want to invite you to enroll. Here's what you will get inside.

Be Careful: Laravel 5.8 Added bigIncrements As Defaults

There is one change in Laravel 5.8 that is not mentioned in the official Upgrade Guide but caused me problems - I couldn't create a foreign key migration, and spent half-hour until found out the reasons. So I want to share, maybe you will encounter the same thing.

STAY CONNECTED

1,893FansLike
6,367FollowersFollow
7,532SubscribersSubscribe

NEWEST VIDEOS

RANDOM ARTICLES