Dennis Smink wrote a nice Laravel tutorial on how to create a lock screen.

laravel auth lock screen

Unlike your phone that locks automatically after an X number of seconds, Laravel does not come with a locking feature.

laravel auth lock screen

In this tutorial I will explain how to create a basic setup so you can have a ‘lock’ screen which is configurable for the end-user. I will show you a basic middleware, migration, view, and adjustment to the LoginController and User model to allow this. We will save the value of locking in minutes to our database.