PHPackages                             meshesha/artisan-make-mvc - 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. [Admin Panels](/categories/admin)
4. /
5. meshesha/artisan-make-mvc

ActiveLibrary[Admin Panels](/categories/admin)

meshesha/artisan-make-mvc
=========================

Laravel artisan command to create view, controller and route from existing Model

3101PHP

Since Jun 19Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/meshesha/artisan-make-mvc)[ Packagist](https://packagist.org/packages/meshesha/artisan-make-mvc)[ RSS](/packages/meshesha-artisan-make-mvc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Aartisan make Mvc
=================

[](#aartisan-make-mvc)

Laravel package that adds artisan command to create CRUD files and actions which includes: views (index,create,show,edit) , controller , add a route , factory and test . It depends on the existing model. And all this in a single command line.

Requirements
------------

[](#requirements)

- laravel &gt;= 7

Installation
------------

[](#installation)

### Downloading

[](#downloading)

Via [composer](http://getcomposer.org):

```
composer require meshesha/artisan-make-mvc
```

### Publish config file

[](#publish-config-file)

```
php artisan vendor:publish --provider="Meshesha\ArtisanMakeMvc\ArtisanMakeMvcServiceProvider"
```

Usage
-----

[](#usage)

- This package depends on an existing model. So it is required to create a model:

```
php artisan make:model Post -m
```

- complete the required column names in the migration file, and migrate to the database.
- Inside the model file you must add $fillable

```
protected $fillable = [
'title',
'body',
];
```

### Command options

[](#command-options)

```

php artisan make:mvc {model} {--W|incviews=true} {--F|viewfolder=} {--H|includehidden=true} {--C|inccontroller=true} {--R|incroute=true}

model :  the existing model name (required) (e.g. 'Post')
--incviews      | -W : Whether to include\create blade views  (optional) (default value : true).
--viewfolder    | -F : sub folder inside "resources\views" (optional) (default value : db table name of model (e.g. : 'posts'))
--includehidden | -H : Whether to include hidden fields that are mentioned in the model via 'protected $hidden' (optional) (default value : false)
--inccontroller | -C : Whether to include\create controller (optional) (default value : true)
--incroute      | -R : Whether or not to add a route to the routers file (optional) (default value : true)

--factory            : Add factory file (ModelNameFactory.php)  in "database/Factories" directory.
--test               : Add test file (ModelNameTest.php) in "tests/Feature" directory and factory file  in "database/Factories" directory (because it is required for testing).

```

### Config file (config\\ArtisanMakeMvc.php)

[](#config-file-configartisanmakemvcphp)

```
return [
    "template" => "default", //templates: default (Vanilla CSS), bootstrap, tailwind
    "extends" => "", //e.g: @extends('layouts.app')
    "section" => "", //e.g: @section('content')
    "endsection" => "", //e.g: @endsection
];
```

#### Example:

[](#example)

```
php artisan make:mvc Post

# 'Post' - model name
```

This command will create:

- [PostController.php](https://github.com/meshesha/artisan-make-mvc/wiki/PostController)
- [views/posts/create.blade.php](https://github.com/meshesha/artisan-make-mvc/wiki/create.blade.php(default-tmpl))
- [views/posts/edit.blade.php](https://github.com/meshesha/artisan-make-mvc/wiki/edit.blade.php(default))
- [views/posts/index.blade.php](https://github.com/meshesha/artisan-make-mvc/wiki/index.blade.php(default))
- [views/posts/show.blade.php](https://github.com/meshesha/artisan-make-mvc/wiki/show.blade.php(default))

And add to routes/web.php: For laravel version &gt;= 8.0.0

```
// posts:
Route::resource('posts', App\Http\Controllers\PostController::class);
```

For laravel version &lt; 8.0.0

```
// posts:
Route::resource('posts', 'PostController');
```

### undo

[](#undo)

#### undo last action

[](#undo-last-action)

```
php artisan mvc:undo
```

Will delete all recently created files.

#### more options:

[](#more-options)

```
-L | --list    : shows history list
-S | --select  : select from list for 'undo' action.

```

License
-------

[](#license)

MIT License (MIT). Please see the [license file](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/639c3ab4cee3c4ff390aa2e73aa7b3111aa95735db0a4d1228e1037c1ef15413?d=identicon)[meshesha](/maintainers/meshesha)

---

Top Contributors

[![meshesha](https://avatars.githubusercontent.com/u/18533793?v=4)](https://github.com/meshesha "meshesha (37 commits)")

---

Tags

artisanartisan-commandcrudlaravellaravel-controllerlaravel-crudlaravel-crud-generatorlaravel-modellaravel-routelaravel-viewslatavel-packagepackage

### Embed Badge

![Health badge](/badges/meshesha-artisan-make-mvc/health.svg)

```
[![Health](https://phpackages.com/badges/meshesha-artisan-make-mvc/health.svg)](https://phpackages.com/packages/meshesha-artisan-make-mvc)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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