Install the Package
Installshopper/framework via Composer:
If you have a cached config from a previous setup, run
php artisan config:clear before installing.Prepare Your User Model
Shopper relies on yourUser model having certain relationships and methods for authentication, permissions, and admin panel access. Add the InteractsWithShopper trait and implement the ShopperUser interface on your User model:
app/Models/User.php
InteractsWithShopper trait provides relationships for roles, permissions, orders, addresses, and two-factor authentication. The ShopperUser interface ensures your model adheres to the contract expected by Shopper’s admin panel.
Run the Installer
The install command publishes configuration files, creates the asset symlink, and optionally runs migrations and seeders:- Publishes Shopper config files to
config/shopper/ - Publishes Spatie MediaLibrary migrations
- Publishes Filament assets
- Creates a symlink from
vendor/shopper/framework/publictopublic/cpanel(or your configured prefix) - Prompts you to run migrations and seed the database with roles, permissions, and default data
All Shopper database tables are prefixed with
sh_ by default to avoid conflicts with your existing tables. You can change this in config/shopper/core.php.Create an Admin User
Create your first admin user to access the dashboard:Access the Admin Panel
If you are using Laravel Herd or Laravel Valet, visit your application at:php artisan serve, the admin panel is available at http://localhost:8000/cpanel/login.
The /cpanel prefix is configurable. See the Configuration page for details.
Next Steps
Configuration
Customize the admin prefix, models, middleware, and settings.
Dashboard
Learn about the dashboard components and how to customize them.
Products
Start building your product catalog.