dannypas00 / laravel-template-project
The skeleton application for the Laravel framework.
dev-develop
2025-02-13 20:42 UTC
Requires
- php: ^8.3
- barryvdh/laravel-ide-helper: ^3.0
- driftingly/rector-laravel: ^2.0
- fakerphp/faker: ^1.23
- inertiajs/inertia-laravel: ^1.0
- laravel/framework: ^11.0
- laravel/horizon: ^5.24
- laravel/jetstream: ^5.0
- laravel/octane: ^2.5
- laravel/reverb: @beta
- laravel/sanctum: ^4.0
- laravel/telescope: ^5.1
- laravel/tinker: ^2.9
- spatie/laravel-data: ^4.4
- spatie/laravel-query-builder: ^5.8
- spatie/laravel-typescript-transformer: ^2.4
- spatie/laravel-webhook-client: ^3.3
- tightenco/ziggy: ^2.0
Requires (Dev)
- brianium/paratest: ^7
- laravel/pint: ^1.13
- laravel/sail: ^1.26
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.1
- pestphp/pest: ^3.7
- pestphp/pest-plugin-laravel: ^3.0
- roave/security-advisories: dev-latest
- spatie/laravel-ignition: ^2.4
This package is auto-updated.
Last update: 2025-02-25 21:12:55 UTC
README
See this template in action at laravel-template.dannypas00.com
Default credentials are test@example.com
and test1234
.
Installation
Run the command make PROJECT_NAME=<your project name here>
, substituting for you project name.
This make target will install all required dependencies and replace all templating with your chosen project name.
Running locally
To run the project locally, after installation simply run docker compose up -d
to start the docker environment.
To change ports of services, change the .env file, ports are imported from there.
Local environment default urls
- Application: http://localhost:80
- Mailpit: http://localhost:8025
Default settings
- User credentials:
- email: test@example.com
- password: test1234
Deploying
- Change template values in Makefile
- Ensure the
ENV
environment variable is set toproduction
- Run
make
- Edit the .env file to match the production environment
- Run
make deploy
- This will install and expose the app according to the .env file
Reverse proxy
To set up a reverse proxy on your host (e.g. for hosting multiple projects on one host):
- Copy the reverse-proxy.docker-compose.yaml and reverse-proxy.Caddyfile to a location on your host.
- Configure the reverse-proxy.Caddyfile to accept the correct host
- Run the service with
docker compose up -d
- Adding more hosts is as simple as copy/pasting the contents of the Caddyfile and changing the external host and internal port