PHPackages                             steelants/laravel-boilerplate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. steelants/laravel-boilerplate

ActiveLibrary

steelants/laravel-boilerplate
=============================

Everything you need to start your Laravel journey.

2.5.4(1mo ago)13.5k↓41.7%[1 PRs](https://github.com/steelants/Laravel-Boilerplate/pulls)MITPHP

Since Nov 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/steelants/Laravel-Boilerplate)[ Packagist](https://packagist.org/packages/steelants/laravel-boilerplate)[ RSS](/packages/steelants-laravel-boilerplate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (23)Versions (108)Used By (0)

Laravel-Boilerplate
===================

[](#laravel-boilerplate)

#### Currently WIP

[](#currently-wip)

### Created by: [SteelAnts s.r.o.](https://www.steelants.cz/)

[](#created-by-steelants-sro)

[![Total Downloads](https://camo.githubusercontent.com/d66f60da98bee14b19dc9ccf1b6e4ffafe54d72998b62bb9c83a68836a7dfb40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737465656c616e74732f6c61726176656c2d626f696c6572706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/steelants/laravel-boilerplate)

Preview
-------

[](#preview)

[boilerplate.steelants.cz](https://boilerplate.steelants.cz)

Change notes
------------

[](#change-notes)

### 2.3.0

[](#230)

Now by default modal will show only livewire that have AllowInModal attribute.

```
use SteelAnts\Modal\Livewire\Attributes\AllowInModal;

// only logged in users
#[AllowInModal()]
class Form extends Component

#[AllowInModal(asGuest: true)]
class Form extends Component

// only for users with Gate::allows('is-admin')
#[AllowInModal(ability: 'is-admin')]
class Form extends Component
```

#### Tag project

[](#tag-project)

```
  git checkout main
  git pull origin main
  git pull origin dev
  git tag 1.8.4
  git push --tags
  git checkout dev
```

What's included
---------------

[](#whats-included)

### Functions

[](#functions)

- User Management
- Job Management
- Cache Management
- Backup Manager
- Log Viewer
- Audit
- API Routes view page
- Menu builder
- From builder
- Datatable builder

### Template

[](#template)

- Reponsive app template
- Light/dark theme
- Build on Bootstrap and Livewire
- Quill editor

Install
-------

[](#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
------------

[](#menu-builder)

### Single Level

[](#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

[](#with-sub-menu--builder)

### Multi Level

[](#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',
    ]);
});
```

Alerts
------

[](#alerts)

### types

[](#types)

```
success
error
warning
info

```

### RELOAD type

[](#reload-type)

```
	Alert::add(type: 'info', text: 'Informační zpráva po redirektu', icon: '', mode: AlertModeType::RELOAD, persist: false);
```

### INSTANT type

[](#instant-type)

```
	Alert::add(type: 'error', text: 'Error zpráva ve stejném requestu', icon: '', mode: AlertModeType::INSTANT, persist: false);
```

### parametry

[](#parametry)

icon - využívá defaultní ikonu dle typu, pokud není nastavena persist - pokud je true, zůstává notifikace aktivní dokud ji neodklikne uživatel nebo neprovede redirect.

Development
-----------

[](#development)

1. Create subfolder `/packages` at root of your laravel project
2. 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
```

3. edit composer.json file

```
"autoload": {
	"psr-4": {
		"SteelAnts\\LaravelBoilerplate\\": "packages/Laravel-Boilerplate/src/"
	}
}
```

4. Add provider to `bootstrap/providers.php`

```
return [
	...
	SteelAnts\LaravelBoilerplate\BoilerplateServiceProvider::class,
	...
];
```

5. use commands to aplicate changes

```
composer dump-autoload
```

6. aplicate packages changes - before this you need have auth package

```
php artisan install:boilerplate --force
```

CRUD
----

[](#crud)

### Create CRUD

[](#create-crud)

Create default files in model livewire

```
php artisan make:crud {model name}
```

### Create CRUD Forced

[](#create-crud-forced)

Create default files in model livewire with ovewrite

```
php artisan make:crud {model name} --force
```

### Create CRUD Full Page

[](#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
```

### Create CRUD Full Page

[](#create-crud-full-page-1)

Create components in custome namespace

```
php artisan make:crud {model name} --namespace=\\Admin
```

CRUD parameters
---------------

[](#crud-parameters)

### Add prefix in TestController

[](#add-prefix-in-testcontroller)

Give you for example "admin.test.datatable"

```
public string $prefix = "admin.";
```

### Add model options in TestController

[](#add-model-options-in-testcontroller)

Give to add modal size parameter

```
public function __construct()
{
	$this->model_component = [
		'size' => 'lg',
	];
}
```

SelectboxAjax (WIP)
-------------------

[](#selectboxajax-wip)

When you have selectbox with more than 100 options, it's recommended to use dynamic search with livewire (for now only available in selextbox-ajax). Alpine will then call method speicified in searchagble parameter.

```

```

Only thing you need to change is to create renderless function and call searchableSelectbox method that will handle everything.

```
	use SearchableSelectbox;

	#[Renderless]
	public function getOptions($search = '')
	{
		return $this->searchableSelectbox($search, User::class, $this->user_id)->toArray();
	}
```

Contributors
------------

[](#contributors)

[ ![](https://camo.githubusercontent.com/b530c63639ee895a0987f6ddca3d0b36e654af21a3f4e3165e7f8c0faf574866/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d737465656c616e74732f4c61726176656c2d426f696c6572706c617465)](https://github.com/steelants/Laravel-Boilerplate/graphs/contributors)Other Packages
--------------

[](#other-packages)

[steelants/laravel-auth](https://github.com/steelants/laravel-auth)

[steelants/laravel-boilerplate](https://github.com/steelants/Laravel-Boilerplate)

[steelants/datatable](https://github.com/steelants/Livewire-DataTable)

[steelants/form](https://github.com/steelants/Laravel-Form)

[steelants/modal](https://github.com/steelants/Livewire-Modal)

[steelants/laravel-tenant](https://github.com/steelants/Laravel-Tenant)

Notes
-----

[](#notes)

- [Laravel MFA](https://dev.to/roxie/how-to-add-google-s-two-factor-authentication-to-a-laravel-8-application-4jjp)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Recently: every ~1 days

Total

104

Last Release

54d ago

Major Versions

0.0.5 → 1.0.02024-03-26

1.8.5 → 2.0.02025-10-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dc98a78c37f6eea8dc7942cdace8a805ba6430a020e6ab54c62a0639fe51f38?d=identicon)[JonatanRek](/maintainers/JonatanRek)

---

Top Contributors

[![GamerClassN7](https://avatars.githubusercontent.com/u/22167469?v=4)](https://github.com/GamerClassN7 "GamerClassN7 (447 commits)")[![Xinatorus](https://avatars.githubusercontent.com/u/17276754?v=4)](https://github.com/Xinatorus "Xinatorus (204 commits)")[![Imendin](https://avatars.githubusercontent.com/u/3099109?v=4)](https://github.com/Imendin "Imendin (120 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/steelants-laravel-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/steelants-laravel-boilerplate/health.svg)](https://phpackages.com/packages/steelants-laravel-boilerplate)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[mhmiton/laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.

236409.6k9](/packages/mhmiton-laravel-modules-livewire)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[lakm/laravel-comments

Integrate seamless commenting functionality into your Laravel project.

40012.9k1](/packages/lakm-laravel-comments)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
