PHPackages                             mpmg/laravue - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mpmg/laravue

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mpmg/laravue
============

Code generation for MPMG projects that use Laravel and VueJs tecnologies.

v8.38.164(3y ago)09151MITPHP

Since Oct 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mpmg-sti/laravue)[ Packagist](https://packagist.org/packages/mpmg/laravue)[ Docs](https://github.com/mpmg-sti/laravue)[ RSS](/packages/mpmg-laravue/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (19)Used By (0)

Laravue
=======

[](#laravue)

Code generation for MPMG projects that use Laravel and VueJs tecnologies.

Instalation
-----------

[](#instalation)

```
composer require mpmg/laravue

```

```
php artisan laravue:install

```

```
php artisan vendor:publish --provider="Mpmg\Laravue\LaravueServiceProvider"

```

```
php artisan migrate

```

```
php artisan passport:install

```

Documentation
-------------

[](#documentation)

### Commands

[](#commands)

#### Build

[](#build)

```
php artisan laravue:build

```

Generates code for backend (Laravel) and frontend (VueJs) for model &lt;model&gt;

#### Build with options

[](#build-with-options)

```
php artisan laravue:build

```

#### Comand Description

[](#comand-description)

Generates code for backend (Laravel) and frontend (VueJs) for model &lt;model&gt; with fields &lt;-f|--fields&gt;

### Examples

[](#examples)

Supose we have the situation that users have posts and models are **Users**

FieldTypeDetaisidintegernot null; primary keynamestringnot nullageintegernullable**Posts**

FieldTypeDetaisidintegernot null; primary keyuser\_idintnot null; foreing key for userstextstringnot nullcreated\_atdatetimenot nullapprovedbooleannot null**Command for generate User model**

```
php artisan laravue:build User -f name:s,age:i.n

```

**Command for generate Post model**

```
php artisan laravue:build Post -f user_id:i,text:s,age:i.n,created_at:dt,approved:b

```

### Fields types and shortcus

[](#fields-types-and-shortcus)

ShortcutGenerateDescriptionbpk$table-&gt;bigIncrements('id');Incrementing ID using a "big integer" equivalent.bi$table-&gt;bigInteger('votes');BIGINT equivalent to the tableby$table-&gt;binary('data');BLOB equivalent to the tableb$table-&gt;boolean('confirmed');BOOLEAN equivalent to the tablec.4$table-&gt;char('name', 4);CHAR equivalent with a lengthd$table-&gt;date('created\_at');DATE equivalent to the tabledt$table-&gt;dateTime('created\_at');DATETIME equivalent to the tablede.5-2$table-&gt;decimal('amount', 5, 2);DECIMAL equivalent with a precision and scaledb.15-8$table-&gt;double('column', 15, 8);DOUBLE equivalent with precision, 15 digits in total and 8 after the decimal pointe.foo;bar$table-&gt;enum('choices', array('foo', 'bar'));ENUM equivalent to the tablef$table-&gt;float('amount');FLOAT equivalent to the tablepk$table-&gt;increments('id');Incrementing ID to the table (primary key).i$table-&gt;integer('votes');INTEGER equivalent to the tablelt$table-&gt;longText('description');LONGTEXT equivalent to the tablemi$table-&gt;mediumInteger('numbers');MEDIUMINT equivalent to the tablemt$table-&gt;mediumText('description');MEDIUMTEXT equivalent to the tablem$table-&gt;morphs('taggable');Adds INTEGER taggable\_id and STRING taggable\_typesi$table-&gt;smallInteger('votes');SMALLINT equivalent to the tableti$table-&gt;tinyInteger('numbers');TINYINT equivalent to the tablesd$table-&gt;softDeletes();Adds deleted\_at column for soft deletess$table-&gt;string('email');VARCHAR equivalent columns.100$table-&gt;string('name', 100);VARCHAR equivalent with a lengthtx$table-&gt;text('description');TEXT equivalent to the tablet$table-&gt;time('sunrise');TIME equivalent to the tablets$table-&gt;timestamp('added\_on');TIMESTAMP equivalent to the tablett$table-&gt;timestamps();Adds created\_at and updated\_at columnsrt$table-&gt;rememberToken();Adds remember\_token as VARCHAR(100) NULL.n-&gt;nullable()Designate that the column allows NULL values.#5#-&gt;default(5)Declare a default value for a column.+-&gt;unsigned()Unsigned integer.u-&gt;unique()Unique field.u\*$table-&gt;unique\['un1','unN'\];Fields that are unique togetherpf$table-&gt;string(11);VARCHAR size 11 equivalent columnpj$table-&gt;string(14);VARCHAR size 14 equivalent columnfj$table-&gt;string(14);VARCHAR size 14 equivalent columnvm$table-&gt;decimal('money', 16,2);DECIMAL equivalent with a precision 2 and scale 16### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92% 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 ~47 days

Recently: every ~117 days

Total

18

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28d6c410fef4048687dba5c291048ac172c96ba06c964789d192e0bfa79a58d2?d=identicon)[mpmg](/maintainers/mpmg)

---

Top Contributors

[![wesleyhott](https://avatars.githubusercontent.com/u/56511769?v=4)](https://github.com/wesleyhott "wesleyhott (253 commits)")[![mpmg-sti](https://avatars.githubusercontent.com/u/73535641?v=4)](https://github.com/mpmg-sti "mpmg-sti (22 commits)")

---

Tags

laravelvueVue.jsmpmg

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mpmg-laravue/health.svg)

```
[![Health](https://phpackages.com/badges/mpmg-laravue/health.svg)](https://phpackages.com/packages/mpmg-laravue)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[awes-io/table-builder

A component that allows creating responsive HTML tables or lists from data object

4726.1k4](/packages/awes-io-table-builder)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[zachleigh/laravel-vue-generators

Generate Vue js files via artisan commands.

9039.6k](/packages/zachleigh-laravel-vue-generators)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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