Search by

imrandevbd / laravel-blueprint-studio

Visual Laravel Blueprint Studio — create models, migrations, controllers, and views with a premium visual UI powered by Tailwind CSS & Alpine.js.

Maintainers

Package info

github.com/imranbru99/laravel-blueprint-studio

pkg:composer/imrandevbd/laravel-blueprint-studio

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.2.0 2026-08-23 06:51 UTC

This package is auto-updated.

Last update: 2026-08-23 06:56:41 UTC


README

Visual scaffolding for modern Laravel apps.

Stop writing the same CRUD boilerplate by hand. Laravel Blueprint Studio gives you a premium visual UI to design models, fields, migrations, controllers, form requests, Blade views, and routes — then generates production-ready code in one click.

Built with Tailwind CSS + Alpine.js (CDN) · Compatible with Laravel 10 / 11 / 12 / 13

Why Blueprint Studio?

Backend CRUD work is repetitive: model → migration → fillable → validation → controller → views → routes → folder structure for admin/user areas. This package turns that into a visible, clickable workflow:

Manual backend task With Blueprint Studio
Create Eloquent model Type the name visually
Write migration columns Add fields in a table UI (id + timestamps locked by default)
Sync $fillable / $casts Auto-updated from your fields
Build FormRequest rules Generated from field types
Write resource controller One click (User / Admin / Guest folders)
Blade index/create/edit/show Auto from migration fields + Tailwind forms
Register routes Auto-appended to routes/web.php
Keep admin vs user structure Select base → folders + URLs match
Track what you generated Full visual history

Features

Visual builder

  • Premium dark / light studio UI
  • Multi-model workspace — work on several models at once
  • Live field editor with types: string, text, integer, boolean, decimal, date, email, password, foreignId, enum, JSON, UUID, and more
  • Paste multiple field rows at once
  • Import Laravel Blueprint-style YAML drafts

Selective generation (all ON by default)

Uncheck anything you don’t want — skipped at generate time:

  • Model — Eloquent class + fillable/casts
  • Migration — table with id, your columns, timestamps
  • Controller — full resource CRUD + FormRequests
  • Route — auto register in routes/web.php
  • Viewindex, create, edit, show, _form

🔐 Smart Authentication System (Admin, User & Multi-Auth)

Dedicated visual tab to scaffold complete, production-ready auth ecosystems with smart existence detection:

  • 👑 Admin Auth:
    • Model: App\Models\Admin (Authenticatable)
    • Migration: create_admins_table
    • Guard: admin with AdminAuthenticate middleware
    • Controller: App\Http\Controllers\Admin\AuthController
    • Views: Dark-themed Admin Login with 1-click test credentials + Admin Dashboard + Admin Layout
    • Seeder: AdminSeeder pre-seeded with admin@example.com / password (Super Admin)
    • Routes: /admin/login, /admin/dashboard, /admin/logout
  • 👤 User Auth:
    • Model: App\Models\User (smartly preserves existing User.php without breaking)
    • Migration: create_users_table (preserves existing users migration if present)
    • Guard: web
    • Controller: App\Http\Controllers\User\AuthController
    • Views: User Login with 1-click test credentials + Register + Dashboard
    • Seeder: UserSeeder pre-seeded with user@example.com / password (Test User)
    • Routes: /login, /register, /dashboard, /logout
  • ⚡ 1-Click Multi-Auth: Generate Admin + User separated auth stacks simultaneously.
  • ⚡ Pre-Seeded Quick Login: Both login screens feature an interactive "Autofill Demo Credentials" button so you can login and test immediately without typing.

📄 Modern Page Generator (Top 15 Website & Marketing Pages)

Dedicated visual tab to scaffold essential pages with premium Tailwind CSS styling and realistic demo content:

Page Route Category Included Sections & Features
Home / Landing / Marketing Hero banner, stats counter, feature grid, testimonials, CTA banner, FAQ
About Us /about Company Mission, vision, company narrative, leadership preview, milestones timeline
Contact Us /contact Marketing Interactive contact form, email/phone cards, office address, support cards
Services /services Marketing Service cards with modern icons, 3-step delivery process, tech stack badges
Pricing Plans /pricing SaaS Starter/Pro/Enterprise tiers, monthly/annual toggle, comparison matrix, FAQ
FAQ Center /faq Support Animated accordion Q&A list, category filters, live support card
Features /features Product Deep feature highlights, tabbed interactive preview, performance benchmarks
Testimonials /testimonials Social Proof Customer quote cards, verified 5-star badges, client avatar list, metrics
Our Team /team Company Team profile cards with role badges, bios, and social channel links
Careers & Hiring /careers Company Company perks grid, filterable open job listings with "Apply Now" buttons
Blog & News /blog Content Hero featured story, category filter pills, article cards with read time tags
Portfolio /portfolio Agency Filterable case study showcase, before/after metrics, tech stacks used
Privacy Policy /privacy Legal GDPR/CCPA compliant legal layout with sidebar table of contents
Terms of Service /terms Legal Structured terms of service document layout with chapter navigation
Coming Soon /coming-soon Utility Interactive countdown timer, newsletter email subscription form, social links
  • ⚡ 1-Click Bundles: All 15 Pages, Starter Essentials (5), SaaS Stack (6), Agency Stack (7), Legal (2).
  • ⚡ PageController & Auto-Routes: Generates App\Http\Controllers\PageController.php and auto-registers clean routes in routes/web.php.
  • 🛡️ Smart Existence Detection: Preserves any existing custom views while creating only missing pages.

🔗 Visual Eloquent Relationships & Pivot Tables

  • Configure relationships visually: belongsTo, hasMany, hasOne, belongsToMany, morphMany, morphTo.
  • Automatically generates type-hinted relationship methods in your Eloquent models.
  • 1-Click Pivot Table Generator: Auto-generates create_model_model_table migrations for many-to-many associations.
  • Interactive ERD Schema Canvas: Visual graph displaying all models, columns, primary keys, and relationship links.

⚡ REST API Generator & Postman Export

  • API Resources: Generates App\Http\Resources\{Model}Resource.php.
  • API Controllers: Generates App\Http\Controllers\Api\{Model}Controller.php with standardized JSON REST responses (200, 201, 204, 422).
  • API Routes: Auto-registers in routes/api.php via Route::apiResource().
  • 📥 Postman Collection v2.1 Export: 1-click download of JSON collection ready to import into Postman, Insomnia, or ThunderClient.

🌱 Smart Model Factories & Mock Seeders (Faker)

  • Generates database/factories/{Model}Factory.php with smart Faker heuristics based on column names and types (safeEmail, phoneNumber, address, imageUrl, randomFloat, paragraphs, randomElement, etc.).
  • Generates database/seeders/{Model}Seeder.php with custom record counts and auto-injects into DatabaseSeeder.php.

🧪 Automated Feature Test Generator (Pest PHP & PHPUnit)

  • Generates full CRUD test coverage (index, create, store validation, show, update, delete) with database assertions.
  • 1-click toggle between Pest PHP (test(...)) and standard PHPUnit (test_can_create_record()).

💾 Web Artisan Console & Database Explorer

  • Run Artisan commands directly from Studio UI with live output streaming:
    • 🚀 php artisan migrate
    • 🌱 php artisan db:seed
    • 🔄 php artisan migrate:rollback
    • ⚠️ php artisan migrate:fresh
    • 🧭 php artisan route:list
    • 🧹 php artisan optimize:clear
  • Live Database Table Explorer showing all tables, columns, and active record counts.

💻 Artisan CLI Commands

  • php artisan studio:install — Publish package config and view assets in 1 command.
  • php artisan studio:generate — CLI generator to scaffold full stacks from the terminal or CI pipelines.

User / Admin / Guest bases

Pick a base and Studio creates the matching folders + routes:

Base Controller Views Requests URL
User app/Http/Controllers/User/ resources/views/user/ app/Http/Requests/User/ /user/{resource}
Admin app/Http/Controllers/Admin/ resources/views/admin/ app/Http/Requests/Admin/ /admin/{resource}
Guest app/Http/Controllers/Guest/ resources/views/guest/ app/Http/Requests/Guest/ /guest/{resource}

Smart defaults

  • Layout auto-created (layouts/app) with Tailwind + Alpine CDN if missing
  • Soft deletes option per model
  • Validation rules derived from field types
  • Upsert-safe: regenerating updates existing model/migration instead of duplicating
  • 🛡️ Live Domain Auto-Lockdown: Strictly for local development (localhost, 127.0.0.1, *.test, *.local). Even if a developer accidentally leaves APP_ENV=local on a live production domain, Studio auto-detects the live domain and stealthily hard-blocks access (404) to prevent hackers from tampering with the system.
  • Generation history with reload-into-builder support

Generated stack (example: Product + Admin)

app/Models/Product.php
database/migrations/xxxx_create_products_table.php
app/Http/Controllers/Admin/ProductController.php
app/Http/Requests/Admin/StoreProductRequest.php
app/Http/Requests/Admin/UpdateProductRequest.php
resources/views/admin/products/index.blade.php
resources/views/admin/products/create.blade.php
resources/views/admin/products/edit.blade.php
resources/views/admin/products/show.blade.php
resources/views/admin/products/_form.blade.php
routes/web.php   ← Route::prefix('admin')->... resource

Requirements

  • PHP 8.1+
  • Laravel 10 / 11 / 12 / 13

Installation

Path package (local development)

In your Laravel app composer.json:

{
  "repositories": [
    {
      "type": "path",
      "url": "../laravel-blueprint-studio",
      "options": { "symlink": true }
    }
  ],
  "require": {
    "imrandevbd/laravel-blueprint-studio": "*"
  }
}
composer update imrandevbd/laravel-blueprint-studio
php artisan vendor:publish --tag=blueprint-studio-config
php artisan migrate

From Packagist / GitHub

composer require imrandevbd/laravel-blueprint-studio
php artisan vendor:publish --tag=blueprint-studio-config
php artisan migrate

Or from GitHub directly:

composer config repositories.laravel-blueprint-studio vcs https://github.com/imranbru99/laravel-blueprint-studio
composer require imrandevbd/laravel-blueprint-studio:dev-main
php artisan vendor:publish --tag=blueprint-studio-config
php artisan migrate

Quick start

  1. Open /blueprint-studio
  2. Add model(s) on the left (e.g. Product, Order)
  3. Edit fields on the right
  4. Choose User / Admin / Guest
  5. Keep (or uncheck) Model · Migration · Controller · Route · View
  6. Click Generate this model or Generate all
  7. Run php artisan migrate

How the generate flow works

When you submit (with components selected):

1. Layout ensure (if views/controller need it)
2. Model          → app/Models
3. Migration      → database/migrations
4. FormRequests   → app/Http/Requests/{User|Admin|Guest}
5. Controller     → app/Http/Controllers/{User|Admin|Guest}
6. Views          → resources/views/{user|admin|guest}/{resource}
7. Route          → routes/web.php (prefixed group)
8. History        → recorded in blueprint_studio_history

Unselected components are skipped.

Configuration

Publish config:

php artisan vendor:publish --tag=blueprint-studio-config

Key options in config/blueprint-studio.php:

Key Purpose
route_prefix Studio URL (default blueprint-studio)
middleware Add auth in shared environments
allowed_environments Where the UI is allowed
controller_bases User / Admin / Guest paths & prefixes
auto_routes Auto-write routes/web.php
field_types Visual field catalog + validation
layout.path Blade layout for generated views

Environment

BLUEPRINT_STUDIO_ENABLED=true
BLUEPRINT_STUDIO_PREFIX=blueprint-studio
BLUEPRINT_STUDIO_FORCE=false
BLUEPRINT_STUDIO_MIDDLEWARE=auth
BLUEPRINT_STUDIO_AUTO_ROUTES=true

Security note

Blueprint Studio writes PHP and Blade into your app. Use it behind auth, keep it on local/staging, and leave it disabled in production unless you intentionally force-enable it with strong middleware.

Package structure

laravel-blueprint-studio/
├── config/blueprint-studio.php
├── database/migrations/
├── resources/views/studio/     ← Visual UI
├── routes/web.php
└── src/
    ├── Http/Controllers/
    ├── Services/               ← Generators + orchestrator
    ├── Support/
    └── Models/

License

MIT © Imran Dev BD

Developed by Imran Dev BD

If you have any issue, need help, or want custom Laravel work — contact me anytime.

🌐 Portfolio imrandev.bd
💼 LinkedIn linkedin.com/in/imranbru99
🐙 GitHub github.com/imranbru99
🐦 X / Twitter @imrandev_bd
📺 YouTube @ImranDevBD
📸 Instagram @imranbru99
📘 Facebook ExpertImranDev
🎵 TikTok @imrandev_bd
🧵 Threads @imranbru99
📌 Pinterest @imrandev_bd
💬 WhatsApp +880 1576-918420
📧 Email me@imrandev.bd
🔗 All Links linktr.ee/ExpertImranDev

Any issue? Contact me please → imrandev.bd/contact