NEWEST ARTICLES

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.

“Posts Per Page”: How to Save Setting for Every User Individually

In typical project with list and pagination, you should have a choice to select, how many entries you want to see per page - 10, 25, 50, 100 etc. That setting probably refreshes the table or the whole page, but how to save it for the next time that user logs in, or visits the page in a week?

Taylor Otwell: “Thin” Controllers, “Fat” Models Approach

I was listening to recent podcast by Taylor Otwell, Laravel Snippet episode 11, where he touched on the debate in Laravel community on where you should put your code logic - in Controllers, Models, or Services. Here's what he said.

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...

Resize Images in Laravel with Spatie Media Library

Really popular Laravel Media Library package has one less-known feature - image resizing. The best part is that it's really simple to add, let me show you how.

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.

Laravel 5.8: Automatic Policy Resolution

One of the new features in Laravel 5.8 allows you to not register your policies in AuthServiceProvider, they will be "guessed" automatically. Here's how it works.

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,828FansLike
5,865FollowersFollow
6,837SubscribersSubscribe

NEWEST VIDEOS

RANDOM ARTICLES

Like our articles?
Check out our Laravel online courses!