PHPackages                             esanj/layout-master - 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. [Templating &amp; Views](/categories/templating)
4. /
5. esanj/layout-master

ActiveLibrary[Templating &amp; Views](/categories/templating)

esanj/layout-master
===================

The ultimate template for web applications

v0.0.5(4mo ago)037MITJavaScriptPHP ^8.2|^8.3|^8.4

Since Oct 1Pushed 3mo agoCompare

[ Source](https://github.com/eSanjDev/ms-package-layout-master-vuexy)[ Packagist](https://packagist.org/packages/esanj/layout-master)[ RSS](/packages/esanj-layout-master/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

🌟 Laravel Vuexy Master Layout Generator
=======================================

[](#-laravel-vuexy-master-layout-generator)

A modular &amp; extensible Laravel package for scaffolding a Vuexy-inspired admin layout.
It includes views, assets, Blade components, menu management and alert handlers—all ready for you to start building your admin panel faster and cleaner.

Built for Laravel 12.x, Vite, and supports dynamic nested menus, sectioned Blade structure, and permission-aware links powered by 🛡️ esanj/managers.

---

🚀 Features
----------

[](#-features)

- 🎨 Pre-built Vuexy-based master layout
- 📦 Scaffolds views, sections, assets and components
- 🧩 Dynamic menu JSON with nested submenus &amp; permissions
- 🔒 Permission-aware menus (via esanj/managers)
- 🎯 Ready for Laravel Vite setup
- 🧱 Supports custom JS/SCSS page parts

---

📦 Installation
--------------

[](#-installation)

Install the package via composer:

```
composer require esanj/layout-master
```

Then run the layout installer:

```
php artisan layout-master:install
```

☝️ This will publish all necessary assets, views, and structure into your Laravel project.

🛠 Folder Structure After Installation
-------------------------------------

[](#-folder-structure-after-installation)

### 📁 resources directory includes:

[](#-resources-directory-includes)

1. Views

```
   resources/views/
   ├── components/    # Blade reusable parts: alerts, menus, error...
   ├── layouts/
   │   └── master.blade.php
   ├── sections/      # Body sections like header, footer, loader, etc.

```

**You may customize or replace components freely.**

2. Assets

```
   resources/assets/
   ├── js/
   │   └── pages/       # Add your per-page JS here
   ├── scss/
   │   └── vendor/
   │       └── scss/pages/   # Add your custom SCSS pages here

```

Ensure you’re using Vite and not Mix.

🗂 Menu System
-------------

[](#-menu-system)

Menu is managed via dynamic JSON located at:

```
resources/menu/menu.json

```

- Nested menus / Submenus (∞ depth)
- Slug and permission-based visibility
- Badges and icons

### Example:

[](#example)

```
{
    "menu": [
        {
            "url": "/admin",
            "name": "Dashboard",
            "icon": "menu-icon icon-base ti tabler-smart-home",
            "slug": "admin.dashboard"
        },
        {
            "name": "Manager",
            "icon": "menu-icon icon-base ti tabler-Admins",
            "slug": "managers",
            "submenu": [
                {
                    "url": "/admin/managers/create",
                    "name": "Create New Manager",
                    "slug": "admin.managers.create",
                    "permission": "managers.create"
                },
                {
                    "url": "/admin/managers",
                    "name": "Managers List",
                    "slug": "managers.index",
                    "permission": "managers.list"
                }
            ]
        }
    ]
}
```

#### ✨ The menu system supports:

[](#-the-menu-system-supports)

- icon: Full CSS classes for icon
- target: set to "\_blank" if you need external link
- permission: optional permission for menu visibility

⚙ Usage in Blade
----------------

[](#-usage-in-blade)

Your pages should extend the provided layouts.master:

### Example:

[](#example-1)

```
@extends('layouts.master')

@section('title', 'Dashboard')

@section('vendor-style')
   @vite([
     'resources/assets/vendor/libs/chartjs/chartjs.scss'
   ])
@endsection

@section('page-style')
   @vite([
     'resources/assets/vendor/scss/pages/dashboard.scss'
   ])
@endsection

@section('content')
   Welcome to the dashboard
@endsection

@section('vendor-script')
   @vite([
     'resources/assets/vendor/libs/chartjs/chartjs.js'
   ])
@endsection

@section('page-script')
   @vite([
     'resources/assets/js/pages/dashboard.js'
   ])
@endsection
```

🧪 Building Assets
-----------------

[](#-building-assets)

To compile your custom JS and SCSS:

```
vite build
```

**Use vite.config.js for further customization.**

🪪 License
---------

[](#-license)

**MIT © eSanjDev**

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance77

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~21 days

Total

5

Last Release

145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c908dfdf092a072c4bc678b161b053e20d00f90e9e9ba2c18ecddef6b848f1a4?d=identicon)[esanj](/maintainers/esanj)

---

Top Contributors

[![itsalifadaei](https://avatars.githubusercontent.com/u/34383343?v=4)](https://github.com/itsalifadaei "itsalifadaei (17 commits)")

### Embed Badge

![Health badge](/badges/esanj-layout-master/health.svg)

```
[![Health](https://phpackages.com/badges/esanj-layout-master/health.svg)](https://phpackages.com/packages/esanj-layout-master)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

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