[Include a brief description or introduction of your project here]
- Installation
- Environment variables
- Credentials
- Usage
- Features
- Entry points
- Production Setup
- Site URLs
- Documentation
[Provide instructions on how to install and set up your Laravel project. Include any dependencies or prerequisites that need to be installed and how to obtain them.]
composer create-project appwise-labs/laravel-template project-name
cd project-name
Set up the following environment variables in your .env file:
TEST_ENV_VARIABLE=example_value
You can find the credentials for this project in 1password or on confluence: [link to confluence page]
[Explain how to use your Laravel project, including any important commands or features. Provide examples and instructions for common tasks.]
Before running the project
php artisan passport:keys
To use a temporary development database. This database is empty upon start, and will clear every reboot. To clear this database, you can run npm run down
npm run up
To clear this database, you can run npm run down
and npm run up
again.
For local development run
php artisan serve
To fix code style
# Run pint and change the code
./vendor/bin/pint
or
npm run pint
# Run pint without changing the code
./vendor/bin/pint --test
or
npm run pint-test
# Run pint only on changed files
./vendor/bin/pint --dirty
or
npm run pint-dirty
To run your tests
./vendor/bin/pest
or
npm run test
TODO: To generate API documentation
php artisan ...
Before pushing to git, run PHPStan to analyse your code
./vendor/bin/phpstan analyse src tests
or
npm run phpstan
[List the main features or functionalities of your Laravel project. You can provide a brief description of each feature and explain how it benefits the users or developers.]
- Feature 1: [Description]
- Feature 2: [Description]
- Feature 3: [Description]
[Provide a list of entry points for your Laravel project. These are the routes that can be accessed by the user. Include a brief description of each route.]
[Provide instructions on how to set up your Laravel project for production. Include any dependencies or prerequisites that need to be installed and how to obtain them.]
- Production URL: [URL]
- Staging URL: [URL]
- Testing URL: [URL]
- Development URL: [URL]
[Provide a link to the documentation for your Laravel project. This can be a link to a Confluence page.]
composer require sentry/sentry-laravel