承接 mrshanebarron/laraveldesign 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mrshanebarron/laraveldesign

Composer 安装命令:

composer require mrshanebarron/laraveldesign

包简介

WordPress-like CMS for Laravel with a Wix-style visual page builder. Posts, pages, categories, tags, menus, media library, and drag-and-drop editing powered by GrapesJS.

README 文档

README

Latest Version on Packagist Total Downloads License

A WordPress-like CMS package for Laravel with a Wix-style visual page builder. Build beautiful pages with drag-and-drop, or use the classic editor for blog posts.

Live demo: socialapparatus.com · Homepage: laraveldesign.com

Features

  • Visual Page Builder - Drag-and-drop editor powered by GrapesJS
  • Pre-built Blocks - Hero sections, features grids, testimonials, pricing tables, CTAs, galleries, contact forms, FAQs
  • Responsive Controls - Preview on desktop, tablet, and mobile
  • Live Preview - See your changes in real-time
  • Classic Editor - Traditional rich text editing for posts
  • Full CMS - Posts, pages, categories, tags, menus, media library

Requirements

  • PHP 8.2+
  • Laravel 11.x or 12.x
  • Filament 3.x
  • Livewire 3.x

Installation

Install via Composer:

composer require mrshanebarron/laraveldesign

Run the install command:

php artisan laraveldesign:install

This publishes the config and migrations, runs migrations, creates the storage link, and sets up default menus.

Add the plugin to your Filament panel provider:

use MrShaneBarron\LaravelDesign\Filament\LaravelDesignPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            LaravelDesignPlugin::make(),
        ]);
}

Publish the config file (optional):

php artisan vendor:publish --tag=laraveldesign-config

Visual Page Builder

The visual page builder gives you Wix-like editing capabilities:

  1. Create or edit a page in Filament admin
  2. Click "Visual Editor" button to launch the drag-and-drop builder
  3. Drag blocks from the left panel onto your page
  4. Click any element to edit text, styles, or settings
  5. Use device buttons to preview responsive layouts
  6. Click Save to publish your changes

Available Blocks

Block Description
Hero Section Full-width header with headline, subtext, and CTA
Text Block Rich text content area
Image + Text Side-by-side layout for features
Features Grid 3-column feature showcase
Testimonials Customer quotes with avatars
Pricing Table 3-tier pricing comparison
Call to Action Conversion-focused section
Image Gallery Grid of images
Contact Form Name, email, message form
FAQ Accordion-style Q&A
2/3 Columns Layout containers
Basic elements Text, images, buttons, dividers, spacers

Features

Content Management

  • Posts - Blog posts with categories, tags, featured images, and SEO fields
  • Pages - Static pages with hierarchical structure and custom templates
  • Categories - Hierarchical categories for organizing posts
  • Tags - Simple tags for post classification
  • Menus - Flexible menu builder with nested items
  • Media - Media library for images, videos, and documents

Filament Admin Panel

Full Filament 3 integration with resources for:

  • Posts (with rich editor, categories, tags, SEO)
  • Pages (with parent/child hierarchy, templates)
  • Categories (with nesting)
  • Tags
  • Menus (with nested menu items)
  • Media Library

Frontend Components

Menu Component

<x-laraveldesign::menu location="header" />

With custom classes:

<x-laraveldesign::menu
    location="header"
    class="main-nav"
    itemClass="nav-item"
    linkClass="nav-link"
    activeClass="active"
/>

Recent Posts

<x-laraveldesign::recent-posts :limit="5" />

Categories List

<x-laraveldesign::categories :showCount="true" />

Tags Cloud

<x-laraveldesign::tags />

Configuration

// config/laraveldesign.php

return [
    // Layout to extend for frontend views
    'layout' => 'layouts.app',

    // Section name for content
    'content_section' => 'content',

    // Blog settings
    'blog_prefix' => 'blog',
    'blog_title' => 'Blog',
    'posts_per_page' => 10,

    // Media settings
    'media' => [
        'disk' => 'public',
        'directory' => 'media',
        'max_size' => 51200, // 50MB
    ],

    // Menu locations
    'menu_locations' => [
        'header' => 'Header Menu',
        'footer' => 'Footer Menu',
        'sidebar' => 'Sidebar Menu',
    ],

    // Page templates
    'page_templates' => [
        'default' => 'Default',
        'home' => 'Homepage',
        'full-width' => 'Full Width',
        'sidebar' => 'With Sidebar',
    ],
];

Routes

The package automatically registers these routes:

Route Description
/blog Blog index
/blog/{slug} Single post
/category/{slug} Category archive
/tag/{slug} Tag archive
/{slug} Static pages (catch-all)

Customizing Views

Publish views to customize:

php artisan vendor:publish --tag=laraveldesign-views

Views will be published to resources/views/vendor/laraveldesign/.

Using Models Directly

use MrShaneBarron\LaravelDesign\Models\Post;
use MrShaneBarron\LaravelDesign\Models\Page;
use MrShaneBarron\LaravelDesign\Models\Category;
use MrShaneBarron\LaravelDesign\Models\Tag;
use MrShaneBarron\LaravelDesign\Models\Menu;
use MrShaneBarron\LaravelDesign\Models\Media;

// Get published posts
$posts = Post::posts()->published()->get();

// Get published pages
$pages = Post::pages()->published()->get();

// Get menu by location
$menu = Menu::getByLocation('header');

// Get categories with post count
$categories = Category::withCount('posts')->get();

License

MIT License. See LICENSE file for details.

mrshanebarron/laraveldesign 适用场景与选型建议

mrshanebarron/laraveldesign 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「blog」 「cms」 「wordpress」 「laravel」 「posts」 「pages」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 mrshanebarron/laraveldesign 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-24