DocsProduction

Production

Deploy Warriorfolio safely — Filament access, assets, Faker, and hosting notes.

Warriorfolio deploys like any Laravel 11 app, with two extra concerns: authorizing the Filament panel outside local, and optional Faker usage if you run seeders in production.

Pre-flight checklist

Essential steps before deploy.

StepCommand / action
EnvCopy .env, set APP_ENV=production, APP_DEBUG=false, strong APP_KEY
URLAPP_URL with no trailing slash
Dependenciescomposer install --no-dev --optimize-autoloader
Front buildnpm ci && npm run build
Cachephp artisan config:cache && php artisan route:cache && php artisan view:cache
Storagephp artisan storage:link on the server
Migrationsphp artisan migrate --force

403 on /admin (Filament)

In non-local environments, Filament may deny panel access until your User model explicitly allows it.

php
1<?php
2
3namespace App\Models;
4
5use Filament\Models\Contracts\FilamentUser;
6use Filament\Panel;
7use Illuminate\Foundation\Auth\User as Authenticatable;
8
9class User extends Authenticatable implements FilamentUser
10{
11 public function canAccessPanel(Panel $panel): bool
12 {
13 return str_ends_with($this->email, '@yourdomain.com')
14 && $this->hasVerifiedEmail();
15 }
16}

Hosting

Compatible with Laravel Cloud, Forge, Vapor, VPS + Nginx, or any PHP 8.2+ host that supports Node for the build step.

  • Point the web root to public/
  • Schedule php artisan schedule:run if you add cron-dependent features
  • Run a queue worker if offloading mail or heavy jobs