- Make sure to run
artisan storage:link
to enable profile photos
- Local development setup
- Custom configuration options
- Scheduled jobs
- Custom commands
- Receiving emails locally
This project uses Laravel Sail for local development.
First, you must download Docker.
In order to install the dependencies required to set up Laravel Sail, you will need PHP installed locally.
- For MacOS users, Homebrew is the recommended way of doing this:
Homebrew install php
- For Windows users, you may follow these instructions.
- For Linux users, you should install PHP via your distribution's package manager.
After you have Docker and PHP installed, navigate to the project directory and run the following:
composer install
./vendor/bin/sail up
./vendor/bin/sail pnpm
Note: If you have node
and pnpm
installed locally, you can run pnpm
from your local machine instead of within the Docker container if you'd like.
Pro tip! Add the following (or something equivalent) to your shell configuration to use Sail more easily:
alias sail="bash vendor/bin/sail"
During development, it's recommended to run the following in parallel:
sail up # starts up Docker container
sail pnpm watch # watches for JS/CSS changes
This project uses the following custom config files:
This project has the following scheduled jobs:
- SendNewTranslationRequestsEmail: This job sends a weekly email to translators, letting them know about new requests for translations and reviews.
- ResizeNewProfilePhotos: This job resizes new/updated profile photos every hour to keep storage space in check.
This project has no custom commands implemented.
In order to check emails sent locally, visit http://localhost:8025
to access MailHog, which is provided by Laravel Sail