-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback for “Serverless Laravel - Getting started” #1792
Comments
Hi @crgdncn!
The package bref/laravel-bridge sets most of those values1 to allow a fresh Laravel app to work right away. Did you install the Footnotes |
Echoing some of what @crgdncn mentioned with regards to Laravel 11, specifically needing to set the specific I think Bref just needs some tweaking for Laravel 11 is all 😄 |
Thanks, yeah it looks like we need to improve the docs and the bridge. Adding that to my todolist, if anyone wants to look at it too feel free. |
Before running "serverless deply", check the serverlerss.yml file to be sure that you have the correct version of php. For example, Laravel 11 requires php 8.2.
runtime: php-82-fpm
If you have not set up a database in AWS, I suggest you move or remove the default migrations files to another directory.
Additionally, set the following .env variables
APP_MAINTENANCE_STORE=array
LOG_CHANNEL=stderr
SESSION_DRIVER=array
CACHE_STORE=array
DB_CONNECTION=
In my config/database.php I set the default db connection to a null string
'default' => env('DB_CONNECTION', ''),
After that, the default laravel page worked as expected :-)
The text was updated successfully, but these errors were encountered: