定制 steelants/laravel-boilerplate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

steelants/laravel-boilerplate

Composer 安装命令:

composer require steelants/laravel-boilerplate

包简介

Everything you need to start your Laravel journey.

README 文档

README

Created by: SteelAnts s.r.o.

Total Downloads

Preview

boilerplate.steelants.cz

Upgrade Guide

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

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',
    ]);
});

Alerts

types

success
error
warning
info

RELOAD type

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

INSTANT type

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

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.

Commands

Command Description
install:boilerplate Install or update boilerplate scaffolding into the project
make:crud Scaffold a full CRUD resource (DataTable, Form, controller, routes, tests)
make:basic-tests Generate basic route coverage tests
job:dispatch Dispatch a job by class name

Components

Component Tag Description
Tab Group <x-boilerplate::tab.group> Bootstrap tabs with Alpine.js state and cookie persistence
Breadcrumb <x-boilerplate::breadcrumb> Bootstrap breadcrumb from associative array
Gantt <x-boilerplate::gantt> Horizontal Gantt chart with day/week/month scale
Pie Graph <x-boilerplate::pie-graph> Chart.js pie chart
Selectbox <x-boilerplate::selectbox> Alpine.js select with tags mode and multi-select
Selectbox Ajax <x-boilerplate::selectbox-ajax> Selectbox with server-side Livewire search
Searchbox <x-boilerplate::searchbox> Client-side filtered dropdown search
Alert alert()->success()->now() Snackbar notifications for Livewire and HTTP contexts

Development

Contributors

Other Packages

steelants/laravel-auth

steelants/laravel-boilerplate

steelants/datatable

steelants/form

steelants/modal

steelants/laravel-tenant

Notes

steelants/laravel-boilerplate 适用场景与选型建议

steelants/laravel-boilerplate 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.58k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 10 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 steelants/laravel-boilerplate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 steelants/laravel-boilerplate 我们能提供哪些服务?
定制开发 / 二次开发

基于 steelants/laravel-boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-19