chore: update env example, gitignore, readme, and deps
This commit is contained in:
33
.env.example
33
.env.example
@@ -47,10 +47,10 @@ REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_MAILER=log
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_SCHEME=null
|
||||
MAIL_HOST=127.0.0.1
|
||||
MAIL_PORT=2525
|
||||
MAIL_HOST=mailpit
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_FROM_ADDRESS="hello@example.com"
|
||||
@@ -62,4 +62,31 @@ AWS_DEFAULT_REGION=us-east-1
|
||||
AWS_BUCKET=
|
||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
|
||||
# Auth Features
|
||||
AUTH_ENABLE_REGISTRATION=true
|
||||
AUTH_ENABLE_PASSWORD_RESET=true
|
||||
AUTH_ENABLE_REMEMBER_ME=true
|
||||
AUTH_ENABLE_EMAIL_VERIFICATION=false
|
||||
|
||||
# Auth Redirects
|
||||
# AUTH_REDIRECT_LOGIN=/dashboard
|
||||
# AUTH_REDIRECT_LOGOUT=/
|
||||
# AUTH_REDIRECT_REGISTER=/dashboard
|
||||
|
||||
# Social Login (uncomment and configure providers in config/auth-ui.php)
|
||||
# AUTH_GITHUB_ENABLED=false
|
||||
# GITHUB_CLIENT_ID=
|
||||
# GITHUB_CLIENT_SECRET=
|
||||
# GITHUB_REDIRECT_URI=${APP_URL}/auth/github/callback
|
||||
|
||||
# AUTH_GOOGLE_ENABLED=false
|
||||
# GOOGLE_CLIENT_ID=
|
||||
# GOOGLE_CLIENT_SECRET=
|
||||
# GOOGLE_REDIRECT_URI=${APP_URL}/auth/google/callback
|
||||
|
||||
# Legal
|
||||
# AUTH_TERMS_URL=
|
||||
# AUTH_PRIVACY_URL=
|
||||
# AUTH_SHOW_LEGAL_IN_REGISTER=true
|
||||
|
||||
VITE_APP_NAME="${APP_NAME}"
|
||||
|
||||
8
.gitignore
vendored
8
.gitignore
vendored
@@ -23,6 +23,14 @@ Homestead.json
|
||||
Homestead.yaml
|
||||
Thumbs.db
|
||||
|
||||
# Claude Code
|
||||
/.claude/
|
||||
CLAUDE.md
|
||||
|
||||
# Laravel Boost
|
||||
.mcp.json
|
||||
boost.json
|
||||
|
||||
# Nuxt UI auto-generated type declarations
|
||||
auto-imports.d.ts
|
||||
components.d.ts
|
||||
|
||||
154
README.md
154
README.md
@@ -1,59 +1,135 @@
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
# Laravel + Nuxt UI + Inertia Template
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
A starter template built with Laravel 13, Inertia.js v3, Vue 3, Nuxt UI, and Tailwind CSS v4.
|
||||
|
||||
## About Laravel
|
||||
## Stack
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
- **Backend:** Laravel 13, PHP 8.5
|
||||
- **Frontend:** Vue 3, Inertia.js v3, TypeScript
|
||||
- **UI:** Nuxt UI v4 (Dashboard components), Tailwind CSS v4
|
||||
- **Validation:** Valibot (frontend), Form Requests (backend)
|
||||
- **Database:** PostgreSQL
|
||||
- **Testing:** Pest v4, Vitest
|
||||
- **Dev Environment:** Laravel Sail (Docker)
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
## Features
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
- **Authentication** — Login (email or username), register, forgot/reset password
|
||||
- **Social Login** — OAuth via Laravel Socialite with provider tracking (`social_accounts` table)
|
||||
- **Email Verification** — Optional, toggle via `AUTH_ENABLE_EMAIL_VERIFICATION`
|
||||
- **Dashboard** — Protected page using Nuxt UI dashboard components with `auth` + `verified` middleware
|
||||
- **Security** — Nullable passwords for social-only users, verified-email requirement for provider linking, rate limiting on all auth endpoints
|
||||
- **Code Quality** — ESLint, Laravel Pint, shared Valibot validation schemas
|
||||
|
||||
## Learning Laravel
|
||||
## Getting Started
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application.
|
||||
```bash
|
||||
# Clone and install
|
||||
composer install
|
||||
cp .env.example .env
|
||||
|
||||
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
# Start Sail
|
||||
vendor/bin/sail up -d
|
||||
|
||||
## Laravel Sponsors
|
||||
# Setup
|
||||
vendor/bin/sail artisan key:generate
|
||||
vendor/bin/sail artisan migrate
|
||||
vendor/bin/sail npm install
|
||||
vendor/bin/sail npm run build
|
||||
```
|
||||
|
||||
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
|
||||
## Development
|
||||
|
||||
### Premium Partners
|
||||
```bash
|
||||
# Start Sail (server, database, etc.)
|
||||
vendor/bin/sail up -d
|
||||
|
||||
- **[Vehikl](https://vehikl.com)**
|
||||
- **[Tighten Co.](https://tighten.co)**
|
||||
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
||||
- **[64 Robots](https://64robots.com)**
|
||||
- **[Curotec](https://www.curotec.com/services/technologies/laravel)**
|
||||
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
|
||||
- **[Redberry](https://redberry.international/laravel-development)**
|
||||
- **[Active Logic](https://activelogic.com)**
|
||||
# Start Vite dev server
|
||||
vendor/bin/sail npm run dev
|
||||
```
|
||||
|
||||
## Contributing
|
||||
Mailpit is available at `localhost:8025` for viewing emails locally.
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
## Testing
|
||||
|
||||
## Code of Conduct
|
||||
```bash
|
||||
# PHP tests (Pest)
|
||||
vendor/bin/sail artisan test
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
# JavaScript tests (Vitest)
|
||||
vendor/bin/sail npm run test
|
||||
|
||||
## Security Vulnerabilities
|
||||
# Lint
|
||||
vendor/bin/sail npm run lint
|
||||
vendor/bin/sail bin pint
|
||||
```
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
## Auth Configuration
|
||||
|
||||
## License
|
||||
Feature flags and redirects are configured via environment variables in `.env`:
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
```env
|
||||
AUTH_ENABLE_REGISTRATION=true
|
||||
AUTH_ENABLE_PASSWORD_RESET=true
|
||||
AUTH_ENABLE_REMEMBER_ME=true
|
||||
AUTH_ENABLE_EMAIL_VERIFICATION=false
|
||||
|
||||
AUTH_REDIRECT_LOGIN=/dashboard
|
||||
AUTH_REDIRECT_LOGOUT=/
|
||||
AUTH_REDIRECT_REGISTER=/dashboard
|
||||
```
|
||||
|
||||
When `AUTH_ENABLE_EMAIL_VERIFICATION=true`:
|
||||
- New users receive a verification email after registration
|
||||
- Unverified users are redirected to the verification page
|
||||
- Social login users are auto-verified (trusted from provider)
|
||||
- Social accounts can only be linked to users with verified emails
|
||||
|
||||
See `config/auth-ui.php` for all available options including page titles, icons, legal links, and social provider configuration.
|
||||
|
||||
## Social Login Setup
|
||||
|
||||
1. Uncomment a provider in `config/auth-ui.php`:
|
||||
|
||||
```php
|
||||
'providers' => [
|
||||
'github' => [
|
||||
'label' => 'GitHub',
|
||||
'icon' => 'i-simple-icons-github',
|
||||
'enabled' => env('AUTH_GITHUB_ENABLED', false),
|
||||
],
|
||||
],
|
||||
```
|
||||
|
||||
2. Add the provider credentials in `config/services.php`:
|
||||
|
||||
```php
|
||||
'github' => [
|
||||
'client_id' => env('GITHUB_CLIENT_ID'),
|
||||
'client_secret' => env('GITHUB_CLIENT_SECRET'),
|
||||
'redirect' => env('GITHUB_REDIRECT_URI'),
|
||||
],
|
||||
```
|
||||
|
||||
3. Set the environment variables in `.env`:
|
||||
|
||||
```env
|
||||
AUTH_GITHUB_ENABLED=true
|
||||
GITHUB_CLIENT_ID=your-client-id
|
||||
GITHUB_CLIENT_SECRET=your-client-secret
|
||||
GITHUB_REDIRECT_URI=${APP_URL}/auth/github/callback
|
||||
```
|
||||
|
||||
Built-in providers (no extra packages needed): GitHub, Google, Facebook, X, LinkedIn, GitLab, Bitbucket, Slack.
|
||||
|
||||
For other providers (Discord, Apple, etc.), install the community package first:
|
||||
|
||||
```bash
|
||||
vendor/bin/sail composer require socialiteproviders/discord
|
||||
```
|
||||
|
||||
Then register the event listener as described in the [Socialite Providers](https://socialiteproviders.com/) docs.
|
||||
|
||||
## AI Setup
|
||||
|
||||
If you use an AI coding assistant, run `vendor/bin/sail artisan boost:install` to generate the configuration files. Otherwise, you can remove the package with `vendor/bin/sail composer remove laravel/boost`.
|
||||
|
||||
60
composer.lock
generated
60
composer.lock
generated
@@ -3076,16 +3076,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpseclib/phpseclib",
|
||||
"version": "3.0.49",
|
||||
"version": "3.0.50",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpseclib/phpseclib.git",
|
||||
"reference": "6233a1e12584754e6b5daa69fe1289b47775c1b9"
|
||||
"reference": "aa6ad8321ed103dc3624fb600a25b66ebf78ec7b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/6233a1e12584754e6b5daa69fe1289b47775c1b9",
|
||||
"reference": "6233a1e12584754e6b5daa69fe1289b47775c1b9",
|
||||
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/aa6ad8321ed103dc3624fb600a25b66ebf78ec7b",
|
||||
"reference": "aa6ad8321ed103dc3624fb600a25b66ebf78ec7b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3166,7 +3166,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/phpseclib/phpseclib/issues",
|
||||
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.49"
|
||||
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.50"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3182,7 +3182,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2026-01-27T09:17:28+00:00"
|
||||
"time": "2026-03-19T02:57:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/clock",
|
||||
@@ -7130,16 +7130,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/pint",
|
||||
"version": "v1.28.0",
|
||||
"version": "v1.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/pint.git",
|
||||
"reference": "1feae84bf9c1649d99ba8f7b8193bf0f09f04cc9"
|
||||
"reference": "bdec963f53172c5e36330f3a400604c69bf02d39"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/pint/zipball/1feae84bf9c1649d99ba8f7b8193bf0f09f04cc9",
|
||||
"reference": "1feae84bf9c1649d99ba8f7b8193bf0f09f04cc9",
|
||||
"url": "https://api.github.com/repos/laravel/pint/zipball/bdec963f53172c5e36330f3a400604c69bf02d39",
|
||||
"reference": "bdec963f53172c5e36330f3a400604c69bf02d39",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7156,8 +7156,8 @@
|
||||
"laravel-zero/framework": "^12.0.5",
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"nunomaduro/termwind": "^2.4.0",
|
||||
"pestphp/pest": "^3.8.5",
|
||||
"shipfastlabs/agent-detector": "^1.0.2"
|
||||
"pestphp/pest": "^3.8.6",
|
||||
"shipfastlabs/agent-detector": "^1.1.0"
|
||||
},
|
||||
"bin": [
|
||||
"builds/pint"
|
||||
@@ -7194,7 +7194,7 @@
|
||||
"issues": "https://github.com/laravel/pint/issues",
|
||||
"source": "https://github.com/laravel/pint"
|
||||
},
|
||||
"time": "2026-03-10T20:37:18+00:00"
|
||||
"time": "2026-03-12T15:51:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/roster",
|
||||
@@ -7259,16 +7259,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/sail",
|
||||
"version": "v1.53.0",
|
||||
"version": "v1.54.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/sail.git",
|
||||
"reference": "e340eaa2bea9b99192570c48ed837155dbf24fbb"
|
||||
"reference": "bcc5e06f1a79d806d880a4b027964d2aa5872b07"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/sail/zipball/e340eaa2bea9b99192570c48ed837155dbf24fbb",
|
||||
"reference": "e340eaa2bea9b99192570c48ed837155dbf24fbb",
|
||||
"url": "https://api.github.com/repos/laravel/sail/zipball/bcc5e06f1a79d806d880a4b027964d2aa5872b07",
|
||||
"reference": "bcc5e06f1a79d806d880a4b027964d2aa5872b07",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7318,7 +7318,7 @@
|
||||
"issues": "https://github.com/laravel/sail/issues",
|
||||
"source": "https://github.com/laravel/sail"
|
||||
},
|
||||
"time": "2026-02-06T12:16:02+00:00"
|
||||
"time": "2026-03-11T14:10:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mockery/mockery",
|
||||
@@ -8120,16 +8120,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-docblock",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||
"reference": "897b5986ece6b4f9d8413fea345c7d49c757d6bf"
|
||||
"reference": "7bae67520aa9f5ecc506d646810bd40d9da54582"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/897b5986ece6b4f9d8413fea345c7d49c757d6bf",
|
||||
"reference": "897b5986ece6b4f9d8413fea345c7d49c757d6bf",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/7bae67520aa9f5ecc506d646810bd40d9da54582",
|
||||
"reference": "7bae67520aa9f5ecc506d646810bd40d9da54582",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -8179,9 +8179,9 @@
|
||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
|
||||
"source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/6.0.2"
|
||||
"source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/6.0.3"
|
||||
},
|
||||
"time": "2026-03-01T18:43:49+00:00"
|
||||
"time": "2026-03-18T20:49:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/type-resolver",
|
||||
@@ -9028,16 +9028,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/environment",
|
||||
"version": "8.0.3",
|
||||
"version": "8.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/environment.git",
|
||||
"reference": "24a711b5c916efc6d6e62aa65aa2ec98fef77f68"
|
||||
"reference": "7b8842c2d8e85d0c3a5831236bf5869af6ab2a11"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/24a711b5c916efc6d6e62aa65aa2ec98fef77f68",
|
||||
"reference": "24a711b5c916efc6d6e62aa65aa2ec98fef77f68",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/7b8842c2d8e85d0c3a5831236bf5869af6ab2a11",
|
||||
"reference": "7b8842c2d8e85d0c3a5831236bf5869af6ab2a11",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -9080,7 +9080,7 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/environment/issues",
|
||||
"security": "https://github.com/sebastianbergmann/environment/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/environment/tree/8.0.3"
|
||||
"source": "https://github.com/sebastianbergmann/environment/tree/8.0.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -9100,7 +9100,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-08-12T14:11:56+00:00"
|
||||
"time": "2026-03-15T07:05:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/exporter",
|
||||
|
||||
15
package-lock.json
generated
15
package-lock.json
generated
@@ -20,6 +20,7 @@
|
||||
"jsdom": "^29.0.0",
|
||||
"laravel-vite-plugin": "^3.0.0",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^8.0.1",
|
||||
"vitest": "^4.1.0"
|
||||
}
|
||||
@@ -10365,6 +10366,20 @@
|
||||
"integrity": "sha512-wTk4DH3cxwk196uGLK/E9pE45aLfeKJacKmcEgEOA/q5dnPGNxXt0cfYdFxb57L+sEpf1oJH4Dnx/pnRcku9jg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/uc.micro": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"jsdom": "^29.0.0",
|
||||
"laravel-vite-plugin": "^3.0.0",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^8.0.1",
|
||||
"vitest": "^4.1.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user