4 months ago

Where should basic logic be placed?

Posted 4 months ago by learn-by-flying

Hi Everyone,

Have successfully gotten laravel up and running, published the hello world app and starting to dive deeper into a basic production prototype; however I am at a loss regarding best practice on some simple logic and where to place these items:

-IP Blocking, traditional I would have this within the html header for the page so that users not on a specific IP would be re-directed to another page (normally my "how to connect to the VPN"). Is it best practice or appropriate to place these specific small scripts in a blade file and then call them with the @yield method?

-Is there a way to define some master global variables for the entire framework?


Please sign in or create an account to participate in this conversation.