abhishekpriy9/bs5larastarter
最新稳定版本:v1.0.0
Composer 安装命令:
composer require abhishekpriy9/bs5larastarter
包简介
A Bootstrap 5 Laravel 11/12 admin panel starter package using Sneat theme.
README 文档
README
A simple, modern admin panel starter kit for Laravel 11+ and 12+, built with Bootstrap 5 and powered by the Sneat Bootstrap 5 Admin Template. This package provides a ready-to-use admin panel with authentication, user profile management, settings, and more.
Minimum Requirements
- PHP >= 8.2
- Laravel 11 or 12
- Node.js >= 18.x
- Composer
- NPM
Admin Panel Screenshot
Example: Sneat Bootstrap 5 Admin Dashboard
Features
- Laravel 11/12 support
- Bootstrap 5 (Sneat theme) UI
- Admin authentication (login/logout)
- Role-based access (admin only)
- User profile management
- Site settings management
- Responsive dashboard
- Vite asset bundling
- Clean code structure for easy customization
Credits
- Sneat Bootstrap 5 Admin Template by ThemeSelection
Installation
Warning: This package will wipe your database and create a new admin user. Use only on a fresh Laravel project.
-
Require the package via Composer:
composer require abhishekpriy9/bs5larastarter
-
Run the installation command:
php artisan bs5:install
- You will be prompted to confirm database wipe and admin user creation.
- Follow the prompts to set admin name, email, and password.
-
Install Node.js dependencies:
npm install
-
Start the Vite development server:
npm run dev
- For production, use:
npm run build
- For production, use:
-
Access the admin panel:
Usage
- Admin Login:
/admin/login - Dashboard:
/admin/dashboard - Profile:
/admin/profile/edit - Settings:
/admin/settings
File Structure
See the stubs/ directory for published controllers, views, assets, and routes.
Customization
- Views: Edit files in
resources/views/admin/for dashboard, login, profile, and settings pages. - Assets: Customize CSS/JS in
resources/admin/assets/. - Settings: Extend
app/Models/Setting.phpandconfig/settings.phpfor site configuration. - Middleware: Modify
app/Http/Middleware/AdminMiddleware.phpfor access control.
Troubleshooting
Watchers Limit Exceeded Error
If you see an error like ENOSPC: System limit for number of file watchers reached when running npm run dev, you need to increase the watchers limit on your system.
To fix this on Linux, run:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf sudo sysctl -p
This increases the number of files your system can watch, which is required for Vite and Laravel Mix to work properly.
FAQ
Will this package overwrite my existing database?
Yes. The install command runs migrate:fresh, which wipes all tables and data. Use only on a fresh Laravel project.
Can I use this with an existing Laravel app?
It’s designed for new projects. Using it on an existing app may cause data loss and conflicts.
How do I change the admin panel URL?
Edit the published routes/admin.php file and update route prefixes as needed.
How do I add more admin users?
Register new users via the database or extend the admin registration logic in your controllers.
How do I customize the theme?
Edit assets in resources/admin/assets/ and views in resources/views/admin/.
Sneat Theme License
This package uses the Sneat Bootstrap 5 Admin Template (free version). For commercial use or advanced features, please purchase a license from ThemeSelection.
Contributing
Pull requests and issues are welcome!
License
MIT
Developed by AbhishekPriy9
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-04
