Download the PHP package esanj/layout-master without Composer
On this page you can find all versions of the php package esanj/layout-master. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download esanj/layout-master
More information about esanj/layout-master
Files in esanj/layout-master
Package layout-master
Short Description The ultimate template for web applications
License MIT
Informations about the package layout-master
🌟 Esanj Layout Master (Vuexy)
A Laravel scaffolding package that drops a ready‑made, Vuexy‑inspired admin layout into your app: a master Blade layout, header/menu/footer sections, reusable components, a permission‑aware dynamic menu, and the Vite/SCSS build configuration.
Everything is published into your project so you fully own and can customize it. The package itself only ships the files and one install command — it registers no routes or runtime views.
Supports: Laravel 10 · 11 · 12 · 13 — PHP 8.2+
✨ Features
- 🎨 Pre‑built Vuexy master layout with header, horizontal menu, and footer.
- 🧩 Dynamic JSON menu with unlimited nested submenus, icons, badges, and per‑item permissions.
- 🔒 Permission‑aware menu links powered by
esanj/managers. - 🧱 Reusable Blade components:
<x-menu>,<x-sub-menu>,<x-alert-message>,<x-error>. - ⚡ Vite + SCSS build config, with auto‑discovered per‑page JS/SCSS.
⚠️ Important: this is a Vuexy scaffold, not the full theme
This package provides the layout, components, menu, and build config — plus a handful of source assets
(config.js, main.js, demo.css, CodeMirror SCSS). It does not bundle the full Vuexy theme source.
The published head/scripts sections and vite.config.js reference the Vuexy theme tree at
resources/assets/vendor/... (core SCSS, fonts, and JS libs like Bootstrap, SweetAlert2, Select2, …). You must
supply that resources/assets/vendor/ tree yourself (from your Vuexy purchase). Without it, npm run build/dev
will fail on missing files.
In short: install this package into a project that already has the Vuexy assets, or add them before building.
📋 Requirements
- PHP 8.2+
- Laravel 10–13
esanj/managers(installed automatically) — the layout assumes an authenticated manager (managerguard) and uses its permissions for menu visibility and the logout route.- Node.js + npm (for the Vite asset build).
📦 Installation
The installer asks before overwriting any existing package.json / vite.config.js / postcss.config.js, then
publishes everything. Use --force to overwrite without prompts:
Then build the front‑end:
🗂️ What gets published
| Publish tag | From (package) | To (your app) | Contents |
|---|---|---|---|
esanj-layout-master-views |
resources/views |
resources/views |
layouts/master, sections/*, components/* |
esanj-layout-master-menu |
resources/menu |
resources/menu |
admin.json (the menu definition) |
esanj-layout-master-assets |
resources/assets |
resources/assets |
css/demo.css, js/*, scss/* |
esanj-layout-master-public |
public |
public/assets/vendor/layout-master |
images/logo-esanj.png, images/null.png |
esanj-layout-master-static |
static |
project root | package.json, vite.config.js, postcss.config.js |
esanj-layout-master-components |
Components |
app/View/Components |
Menu.php, SubMenu.php |
layout-master:install publishes all of these at once. You can also publish a single group:
⚙️ Using the layout
Make your pages extend layouts.master and fill in the sections:
Available sections: title, vendor-style, page-style, content, vendor-script, page-script.
The navbar, menu, and footer are included for you.
The page
<title>is@yield('title') | {{ trans('app.brand_name') }}, so definebrand_namein your app'slang/{locale}/app.php(or change the title inresources/views/layouts/master.blade.php).
🗂️ The menu system
The menu is a JSON file at resources/menu/admin.json with a top‑level menu array:
Item fields:
| Field | Required | Purpose |
|---|---|---|
name |
yes | Label. Passed through __(), so it can be a translation key. |
url |
no | Link target (url() is applied). Omit for a parent that only opens a submenu. |
icon |
no | Full CSS classes for the icon. |
slug |
no | Matched against the current route name to mark the item active. |
permission |
no | If set, the item shows only when the manager has this permission (esanj/managers). |
target |
no | e.g. "_blank" for external links. |
badge |
no | ["color", "text"], e.g. ["primary", "3"]. |
submenu |
no | Array of child items (nested to any depth). |
🔒 The menu requires an authenticated manager. A parent whose children are all hidden by permissions is hidden too.
🧩 Components
After publishing, these components are available in any Blade view:
| Component | Purpose |
|---|---|
<x-menu /> |
Renders the permission‑filtered main menu. |
<x-sub-menu :data="$items" /> |
Renders a submenu (used internally by <x-menu>). |
<x-alert-message :type="'success'" :content="'Saved!'" /> |
A Bootstrap alert. Types: success/danger/warning/info/primary/secondary/dark. |
<x-error field="email" /> |
Shows validation errors for a field (and field.*). |
The master layout also renders a flash alert automatically when you flash a message:
🎨 Customizing
- Views/sections: edit the published files in
resources/views/(e.g.sections/navbar.blade.php,layouts/master.blade.php). - Logo: replace
public/assets/vendor/layout-master/images/logo-esanj.png, or edit the path insections/navbar.blade.php. - Theme defaults (primary color, default theme, RTL, …):
resources/assets/js/config.js. - Menu: edit
resources/menu/admin.json. - Build inputs:
vite.config.js(auto‑includesresources/assets/js/*,js/pages/*, and the Vuexyvendor/,packages/trees).
📖 For a complete, beginner‑friendly, step‑by‑step walkthrough — adding a page, wiring a menu item, building assets, and customizing — see docs/GUIDE.md.
🪪 License
MIT © eSanjDev
All versions of layout-master with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
esanj/managers Version >=1.0.0 <2.0.0