lanciweb/laravel-make-view
Laravel package adding an artisan make:view command to generate Blade view files. Create single views using dot notation (auto-creates nested folders) or scaffold conventional CRUD resource views (index, show, create, edit) with --crud/-c.
Pros:
guests.home), which is useful for modular or multi-tenant applications.--crud flag) accelerates development for resource-based views (e.g., admin panels, CMS sections).Cons:
@extends('layouts.app')).snake_case vs. kebab-case for filenames).resources).make:controller, make:resource) for cohesive workflows.make:view commands could cause filesystem conflicts (mitigated by Laravel’s Artisan locking).resources/views (standard Laravel requirement).--force flag or pre-checks).*.test.blade.php).app()->makeView('path')).@inject) in generated views?.blade.php and .blade.php.lang)?make:controller or Livewire/Inertia scaffolding?resources/views/{module}/{resource}).admin.* views).@extends).mkdir + touch commands with make:view.--crud for resource controllers (e.g., php artisan make:controller PostController --resource followed by make:view posts -c).View::composer for auto-injected data).make:view commands (unlikely, but possible in custom setups).php artisan make:lview).storage/logs/ and bootstrap/cache/ are writable (standard Laravel requirements)..gitignore entries for auto-generated files if needed.composer require lanciweb/laravel-make-view --dev
php artisan vendor:publish --tag=make-view-config # If config options exist
make:view, --crud).admin.* vs. frontend.*).@section('title')).mkdir or touch commands.resources/views structure.chmod -R 755 resources/views.php artisan make:view --help.--env=production if publishing views to shared storage.| Scenario | Impact | Mitigation |
|---|---|---|
| Filesystem write failure | Broken view generation | Retry with chmod or Docker volume fixes. |
| Concurrent command conflicts | Race conditions (rare) | Use php artisan make:view --force. |
| Package abandonment | No future updates | Fork or replace with custom script. |
| Inconsistent naming | Manual overrides needed | Enforce team conventions via PR checks. |
make:view usage in <5 minutes.How can I help you explore Laravel packages today?