Support the ongoing development of Laravel.io →
Configuration Architecture
Last updated 1 year ago.
0

A call to boot will be made with every request to Laravel.

IMHO you should probable register a new service provider in config/app.php

And then create the file you are referencing. Laravel will then do all the work of initiating what you need on every request.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

drc83 drc83 Joined 16 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.