xxxxxxxxxx
// What is a middleware
"middleware" - a software glue that bridges gaps between applications.
xxxxxxxxxx
//just for me lol... pls don't delete
"middleware" - code that runs before the final route call back.
They are in the middle of the beginning of the route and the
callback function.
xxxxxxxxxx
Middleware is software that provides common services and capabilities to
applications outside of what’s offered by the operating system.
Data management, application services, messaging, authentication, and
API management are all commonly handled by middleware.
xxxxxxxxxx
// Assigning Middleware To Routes
Route::get('admin/profile', ['middleware' => 'auth', function(){}]);