Download the PHP package artflow-studio/starterkit without Composer
On this page you can find all versions of the php package artflow-studio/starterkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artflow-studio/starterkit
More information about artflow-studio/starterkit
Files in artflow-studio/starterkit
Package starterkit
Short Description Complete Laravel authentication and admin starter kit with 18 layouts, Bootstrap 5.3.8, dark mode, and full Fortify integration with auto-registered services
License MIT
Informations about the package starterkit
AF Laravel Starter Kit
Complete Laravel Authentication & Admin Starter Kit with Advanced Fortify Integration
14 Beautiful Auth Layouts | 5 Admin Layouts | Zero Build Required | Bootstrap 5.3.8 | Dark Mode | 20 Fortify Response Contracts | Role-Based Redirects | Complete Fortify Integration | Spatie Permission Support
A professional Laravel package with 14 authentication layouts, 5 admin dashboard layouts, Bootstrap 5.3.8, native dark mode, and complete Laravel Fortify integration including all 20 response contracts. Pre-built assets mean zero npm/build step required after installation!
โจ Key Features
- ๐จ 19 Total Layouts - 14 authentication + 5 admin professionally designed layouts
- ๐ Dark Mode - Native Bootstrap dark mode with smooth transitions
- ๐ฑ Fully Responsive - Mobile-first design, works on all devices
- ๐ Bootstrap 5.3.8 - Latest Bootstrap with custom form controls
- โก Pre-Built Assets - No npm/build step required for installation!
- ๐ Complete Fortify Integration - All 20 response contracts implemented
- ๐ก๏ธ Role-Based Redirects - Built-in Spatie Laravel Permission support
- ๐ญ Animated Effects - Particles, gradients, and smooth transitions (pure CSS)
- ๐๏ธ Customizable - Easy to modify colors, layouts, and components
- ๐ Complete Documentation - Comprehensive docs and guides included
- ๐งน Clean Installation - Minimal setup, optional customizations available
- โ AuthService - Centralized authentication logic with hooks
- โ 20 Response Contracts - All Fortify responses fully implemented
- โ
One-Command Installation -
php artisan starterkit:installdoes everything
๐ What's New in v0.3
Complete Fortify Response Contract Coverage
The package now implements all 20 Fortify response contracts, giving you total control over every authentication response:
โ All Response Contracts Implemented
Authentication Responses (4)
LoginResponse- Role-based redirects via AuthServiceRegisterResponse- Post-registration routing via AuthServiceLogoutResponse- Logout handlingTwoFactorLoginResponse- 2FA completion redirects
Password Management (7)
PasswordResetResponse- After password resetPasswordUpdateResponse- After password changePasswordConfirmedResponse- Password confirmation successSuccessfulPasswordResetLinkRequestResponse- Reset link sentFailedPasswordResetLinkRequestResponse- Reset link failedFailedPasswordResetResponse- Reset failedFailedPasswordConfirmationResponse- Wrong password
Profile Management (1)
ProfileInformationUpdatedResponse- Profile updated
Two-Factor Authentication (5)
TwoFactorEnabledResponse- 2FA enabledTwoFactorDisabledResponse- 2FA disabledTwoFactorConfirmedResponse- 2FA confirmedRecoveryCodesGeneratedResponse- Recovery codes generatedFailedTwoFactorLoginResponse- Invalid 2FA code
Email Verification (2)
VerifyEmailResponse- Email verifiedEmailVerificationNotificationSentResponse- Verification email sent
Rate Limiting (1)
LockoutResponse- Too many login attempts
Advanced AuthService with Role-Based Redirects
Package File Structure
All authentication logic is now properly organized in the package:
Important: These files are in the package only, not in your application. The install command optionally publishes AuthService to app/Services/ for customization.
๐ฆ Installation
Quick Start (3 Steps)
Then visit:
- Login/Register: http://localhost:8000/login
- Layout Showcase: http://localhost:8000/test/layouts
Installation Options
What Gets Installed
The install command automatically:
- โ Checks and installs Laravel Fortify (if needed)
- โ Publishes 14 auth layouts
- โ Publishes 5 admin layouts
- โ Publishes pre-built CSS/JS assets (no npm build needed!)
- โ
Publishes configuration (
config/starterkit.php) - โ Registers custom Fortify responses (20 contracts)
- โ
Sets up layout test routes (
/test/layouts) - โ
Updates
.envwithSTARTERKIT_AUTH_LAYOUTandSTARTERKIT_ADMIN_LAYOUT - โ
Optionally publishes AuthService to
app/Services/for customization
Database Setup
This creates the users table and related tables needed for authentication.
๐จ Available Layouts
Authentication Layouts (13 Options)
| Layout | Best For | Features |
|---|---|---|
| particles | Modern feel | Animated particles, connecting lines |
| centered | Classic login | Simple centered form |
| split | Brand showcase | Side-by-side layout |
| glass | Contemporary | Glassmorphism effect |
| hero | Marketing | Large hero section |
| modern | Professional | Contemporary design |
| 3d | Creative | 3D effects |
| premium-dark | Luxury | Dark theme |
| gradient-flow | Dynamic | Animated gradients |
| minimal | Clean | Ultra-simple |
| clean | Business | Professional design |
| hero-grid | Modern | Grid-based |
| sidebar | Navigation | Sidebar style |
Admin Layouts (5 Options)
| Layout | Best For | Features |
|---|---|---|
| sidebar | Dashboards | Collapsible sidebar |
| topnav | Web apps | Horizontal navigation |
| minimal | Analytics | Content-focused |
| neo | Modern | Glassmorphic design |
| classic | Enterprise | Traditional design |
Preview Layouts
๐ Authentication Flow
How Fortify Integration Works
The package includes complete Fortify integration that's automatically registered:
Extending Authentication
Override AuthService methods for custom logic:
๐ Dark Mode
All layouts support native Bootstrap dark mode:
JavaScript to toggle:
๐ Fortify Response Contracts
All 20 Response Contracts Implemented
The package implements all Fortify response contracts for complete control over authentication responses:
Location
Complete Contract List
Automatic Binding
All responses are automatically bound in StarterKitFortifyServiceProvider:
๐ง AuthService - Role-Based Authentication
Location
Features
The AuthService provides centralized authentication logic:
Built-In Spatie Laravel Permission Support
The AuthService automatically detects and uses Spatie roles:
Publishing AuthService
To customize the AuthService for your application:
This creates:
app/Services/AuthService.php- Your customizable copy- Namespace:
App\Services - Instructions for updating response imports
After Publishing
Update these response files to use your published App\Services\AuthService:
vendor/artflow-studio/starterkit/src/Http/Responses/LoginResponse.phpvendor/artflow-studio/starterkit/src/Http/Responses/RegisterResponse.phpvendor/artflow-studio/starterkit/src/Http/Responses/TwoFactorLoginResponse.php
Change import from:
To:
Custom Example
โ๏ธ Configuration
Default Configuration
Edit config/starterkit.php:
Environment Variables
โ๏ธ Configuration
Default Configuration
Edit config/starterkit.php:
Environment Variables
๐ ๏ธ Publishing Tags
Default Publishing (Automatic)
Optional Publishing
๐ฏ Usage Examples
Use Authentication Layout
Use Admin Layout
๐ Dark Mode
All layouts support native Bootstrap dark mode:
JavaScript to toggle:
๐จ Available Layouts
Authentication Layouts (14 Options)
| Layout | Best For | Features |
|---|---|---|
| particles | Modern feel | Animated particles, connecting lines |
| centered | Classic login | Simple centered form |
| split | Brand showcase | Side-by-side layout |
| glass | Contemporary | Glassmorphism effect |
| hero | Marketing | Large hero section |
| modern | Professional | Contemporary design |
| 3d | Creative | 3D effects |
| premium-dark | Luxury | Dark theme |
| gradient-flow | Dynamic | Animated gradients |
| minimal | Clean | Ultra-simple |
| clean | Business | Professional design |
| hero-grid | Modern | Grid-based |
| sidebar | Navigation | Sidebar style |
| base | Minimal HTML | Base layout |
Admin Layouts (5 Options)
| Layout | Best For | Features |
|---|---|---|
| sidebar | Dashboards | Collapsible sidebar |
| topnav | Web apps | Horizontal navigation |
| minimal | Analytics | Content-focused |
| neo | Modern | Glassmorphic design |
| classic | Enterprise | Traditional design |
Preview Layouts
๐งช Testing Authentication
Test Registration & Role-Based Redirect
Test Role-Based Login
Then login:
[email protected]โ redirects to/admin/dashboard[email protected]โ redirects to/moderator/dashboard- Other users โ redirects to
/dashboard
โ FAQ
Q: Do I need npm/build step?
A: No! All assets are pre-compiled. Just run php artisan starterkit:install.
Q: Can I customize the AuthService?
A: Yes! Run php artisan starterkit:install --publish-auth-service to get your own editable copy.
Q: How do I use with Spatie roles?
A: AuthService automatically detects Spatie Laravel Permission. Just assign roles to users and the redirects work automatically.
Q: Can I change layouts dynamically?
A: Yes! Update STARTERKIT_AUTH_LAYOUT in .env and refresh.
Q: What if I don't use roles?
A: All users redirect to /dashboard by default. You can customize in AuthService.
Q: Are the responses extensible?
A: Yes! All responses are in vendor/artflow-studio/starterkit/src/Http/Responses/. Each one can be customized.
๐จ Troubleshooting
Issue: Still redirecting to /home
Solution:
Issue: Role redirects not working
Checklist:
- Is Spatie installed?
composer show spatie/laravel-permission - Did you run migrations?
php artisan migrate - Does user have role?
User::find(1)->getRoleNames() - Do routes exist?
php artisan route:list --path=admin
Issue: "Class not found" errors
Solution:
Issue: Response not binding
Verify binding:
Should output: ArtflowStudio\StarterKit\Http\Responses\LoginResponse
๐ Additional Resources
- Fortify Documentation: https://laravel.com/docs/fortify
- Spatie Permission: https://spatie.be/docs/laravel-permission/
- Bootstrap Documentation: https://getbootstrap.com/docs/5.3/
- Package Repository: https://github.com/artflow-studio/starterkit
๐ Summary
| Feature | Status | Details |
|---|---|---|
| Fortify Response Contracts | โ 20/20 | All contracts implemented |
| Role-Based Redirects | โ Built-in | Spatie automatic detection |
| AuthService | โ Available | In package, publishable |
| Auth Layouts | โ 14 layouts | Ready to use |
| Admin Layouts | โ 5 layouts | Pre-built |
| Dark Mode | โ Native | Bootstrap native |
| Pre-Built Assets | โ Yes | No npm/build needed |
| One-Command Install | โ Yes | Fully automated |
๐ License
This package is open-sourced software licensed under the MIT license.
๐ค Contributing
Contributions are welcome! Please feel free to submit pull requests.
๐ง Support
For issues, questions, or suggestions, please open an issue on GitHub or contact the maintainers.
Custom Middleware
Handle Auth Events
๐ Package Structure
๐ All Available Commands
Installation
Publishing
๐งช Testing
Manual Layout Testing
All 18 layouts are displayed with live switching options.
Unit Tests
๐ Troubleshooting
Assets Not Loading
Layouts Not Showing
Fortify Not Working
Permission Issues
๐ง Requirements
- PHP: 8.1+
- Laravel: 11.x
- Laravel Fortify: ^1.17
- Bootstrap: 5.3.8
- Composer: 2.x+
๐ What's Included
โ Layouts (18 Total)
- 13 authentication layouts (responsive, dark mode)
- 5 admin dashboard layouts (responsive, dark mode)
โ Assets (Pre-built)
- Auth CSS (257 KB) + JS (4 KB)
- Admin CSS (235 KB) + JS (4 KB)
- Bootstrap 5.3.8 integration
- Zero build required!
โ Services
- AuthService with complete hook system
- CustomAuthMiddleware for route protection
- AuthenticationListener for events
- 6 Fortify actions with customization
โ Documentation
- Interactive layout showcase
- Quick start guide
- Dark mode implementation guide
- Complete Fortify integration docs
- SCSS components reference
โ Database
- User table migrations
- Auth tables setup
๐ Development
Local Setup
Build Commands
๐ License
MIT License - Free to use in your projects!
๐ค Support
For help:
- Check
docs/directory - Review
LAYOUTS_DOCUMENTATION.html - Visit
/test/layoutsroute - Check Laravel Fortify docs
๐ Package Information
AF Laravel Starter Kit
- Version: 0.2.0 (with Fortify integration)
- Laravel: 11.x+
- PHP: 8.1+
- Bootstrap: 5.3.8
- License: MIT
- Repository: https://github.com/rahee554/Laravel-Starter-Kit
- Owner: rahee554
Ready to build secure Laravel applications with beautiful layouts? ๐
Start with AF Laravel Starter Kit today!
All versions of starterkit with dependencies
laravel/framework Version ^11.0|^12.0
laravel/fortify Version ^1.17