Sales1 min read187 words

5 Laravel 8 Features You Should Know

Recai Atak

PlusClouds Author

Cloud & SaaS

5 Laravel 8 Features You Should Know

The most popular PHP framework, Laravel, as you know, released its 8th version a few months ago, and let's take a closer look at these beautiful 7 features that have joined us.


#1 Maintenance Mode


This mode has actually existed since the first versions but has been redesigned based on developers' needs.

For example, you can put it in maintenance mode based on seconds.

php artisan down — refresh=15

Or you can set a secret key to allow only certain people to access it.

php artisan down — secret="1872391692361283"

#2 Job Grouping


Sometimes we can have heavy asynchronous job groups that become unmanageable, making it difficult to track their status. With Laravel 8, we can now group jobs.

#3 Queue Job Closure


In older versions, we only dispatched jobs, but now we can call a callback function when the queue jobs are finished to perform the necessary actions.


#4 Rate Limiting


Now we can set configurations on how many times a model or route can be clicked or how many times a job group can be accessed according to the needs of our application or business logic.




#There is no text provided for translation. Please provide the text you would like to be translated into English.

Sıkça Sorulan Sorular

What is maintenance mode in Laravel 8 and how can you use a seconds-based refresh?

Maintenance mode is a feature that has existed since the first versions but has been redesigned to meet developers' needs. You can put it in maintenance mode based on seconds using refresh=15, for example php artisan down — refresh=15. You can also set a secret key so only certain people can access the site during maintenance.

How can you allow only certain people to access a Laravel 8 site in maintenance mode?

You can set a secret key to allow access only to those who know it. For example, php artisan down — secret="1872391692361283". This restricts access to authorized users during maintenance.

What is job grouping in Laravel 8 and why would you use it?

Job grouping allows grouping heavy asynchronous jobs to track their status more easily. This is helpful when large groups of jobs can become unmanageable.

What is the queue job closure feature in Laravel 8?

In older versions you could only dispatch jobs, but now you can call a callback function when the queue jobs are finished to perform the necessary actions. This provides a way to run follow-up tasks automatically.

What is rate limiting in Laravel 8 and how can you configure it?

Rate limiting lets you configure how many times a model or route can be accessed, or how many times a job group can be accessed, according to your application's needs. This helps tailor behavior to your business logic.

Are there visual examples in the post that illustrate these Laravel 8 features?

Yes, the post includes images that illustrate the concepts of job grouping and queue job closure.