steelants / laravel-boilerplate
Everything you need to start your Laravel journey.
Installs: 1 221
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- laravel/framework: ^11.0|^12.0
- livewire/livewire: ^3.0
- steelants/datatable: ^2.2.12
- steelants/form: ^1.3.1
- steelants/laravel-auth: ^1.0.3
- steelants/livewire-form: ^0.0.1
- steelants/modal: ^2.0.1
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-28 21:05:49 UTC
README
Currently WIP
Created by: SteelAnts s.r.o.
Preview
What's included
Functions
- User Management
- Job Management
- Cache Management
- Backup Manager
- Log Viewer
- Audit
- API Routes view page
- Menu builder
- From builder
- Datatable builder
Template
- Reponsive app template
- Light/dark theme
- Build on Bootstrap and Livewire
- Quill editor
Install
composer require steelants/laravel-boilerplate
composer install
#add Basic Controllers Routes and Features to APP namespace for customization
php artisan install:boilerplate
Import javascript and styles (includes bootstrap and font awesome)
// /resources/scss/app.scss @import "./boilerplate/boilerplate.scss"
// /resources/js/app.scss import './boilerplate/boilerplate.js';
Note
If you need customize any of included js/scss files, don't change files inside boilerplate folder. Instead create new root file boilerplate.scss/js by copying it from boilerplate folder. By changing paths of imported files you can make your custom verison or keep importing from boilerplate. When you update boilerplate package you will need to check changes only in root files boilerplate.scss/js and update your custom version accordingly.
Menu Builder
Single Level
Menu::make('main-menu', function ($menu) { $systemRoutes = [ 'general' => ['fas fa-eye', 'general.index'], ]; foreach ($systemRoutes as $title => $route_data) { $icon = $route_data[0]; $route = $route_data[1]; $menu->add($title, [ 'id' => strtolower($title), 'icon' => $icon, 'route' => $route, ]); } });
with sub Menu Builder
Multi Level
Menu::make('main-menu', function ($menu) { $mainItem = $menu->add('Home', [ 'id' => strtolower('Home'), 'icon' => 'fas fa-eye', 'route' => 'general.index', ]); $mainItem->add('Dashboard', [ 'id' => strtolower('Home-Dashboard'), 'icon' => 'fas fa-eye', 'route' => 'general.sub-index', ]); });
Development
-
Create subfolder
/packages
at root of your laravel project -
clone repository to sub folder
/packages
(you need to be positioned at root of your laravel project in your terminal)
git clone https://github.com/steelants/Laravel-Boilerplate.git ./packages/Laravel-Boilerplate
- edit composer.json file
"autoload": { "psr-4": { "SteelAnts\\LaravelBoilerplate\\": "packages/Laravel-Boilerplate/src/" } }
- Add provider to
bootstrap/providers.php
return [ ... SteelAnts\LaravelBoilerplate\BoilerplateServiceProvider::class, ... ];
- use commands to aplicate changes
composer dump-autoload
- aplicate packages changes - before this you need have auth package
php artisan install:boilerplate --force
CRUD
Create CRUD
Create default files in model livewire
php artisan make:crud {model name}
Create CRUD Forced
Create default files in model livewire with ovewrite
php artisan make:crud {model name} --force
Create CRUD Full Page
Create default files in livewire with create and edit as full page
php artisan make:crud {model name} --full-page-components