PHPackages                             rlustosa/laravel-generator - 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. rlustosa/laravel-generator

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

rlustosa/laravel-generator
==========================

Laravel Module management for my projects

0.0.2(6y ago)3129MITPHPPHP &gt;=7.2CI failing

Since Feb 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rupertlustosa/LaravelGenerator)[ Packagist](https://packagist.org/packages/rlustosa/laravel-generator)[ RSS](/packages/rlustosa-laravel-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/97b5803421d3fe4307917cb5ab71bb9ad8ea9b32346d92cf52bf68c697d15478/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6474666276766b79702f696d6167652f75706c6f61642f76313536363333313337372f6c61726176656c2d6c6f676f6c6f636b75702d636d796b2d7265642e737667)](https://camo.githubusercontent.com/97b5803421d3fe4307917cb5ab71bb9ad8ea9b32346d92cf52bf68c697d15478/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6474666276766b79702f696d6167652f75706c6f61642f76313536363333313337372f6c61726176656c2d6c6f676f6c6f636b75702d636d796b2d7265642e737667)

[![Build Status](https://camo.githubusercontent.com/ec8fbcbf02a545204a97d055e1a105b23de25a49751b253b7336daee064e8c0a/68747470733a2f2f7472617669732d63692e6f72672f2f726c7573746f73612f6c61726176656c2d67656e657261746f722e737667)](https://travis-ci.org//rlustosa/laravel-generator)[![Total Downloads](https://camo.githubusercontent.com/56a0cd367457cc0d59a13021f334b641fe50934ab6b056f10d8bb9c249e54d5a/68747470733a2f2f706f7365722e707567782e6f72672f2f726c7573746f73612f6c61726176656c2d67656e657261746f722f642f746f74616c2e737667)](https://packagist.org/packages//rlustosa/laravel-generator)[![Latest Stable Version](https://camo.githubusercontent.com/be272e000f3788478f118cd11a5089c093ca1ff81ccccd14dda9fd46b6d39ee0/68747470733a2f2f706f7365722e707567782e6f72672f2f726c7573746f73612f6c61726176656c2d67656e657261746f722f762f737461626c652e737667)](https://packagist.org/packages//rlustosa/laravel-generator)[![License](https://camo.githubusercontent.com/5616659dc3817c7683f96cbb4cececd876e9a62425cd8da4dbe90d5f1278ca11/68747470733a2f2f706f7365722e707567782e6f72672f2f726c7573746f73612f6c61726176656c2d67656e657261746f722f6c6963656e73652e737667)](https://packagist.org/packages//rlustosa/laravel-generator)

About Laravel Generator
-----------------------

[](#about-laravel-generator)

`rlustosa/laravel-generator`is a Laravel package which created to manage your large Laravel app using modules.

Install
-------

[](#install)

To install through Composer, by run the following command:

```
composer require rlustosa/laravel-generator:dev-master
```

```
composer remove rlustosa/laravel-generator && composer require rlustosa/laravel-generator:dev-master -vvv
```

```
composer require rlustosa/laravel-generator:~0.0.2
```

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

```
php artisan vendor:publish --provider="Rlustosa\LaravelGenerator\LaravelGeneratorServiceProvider"
```

### Autoloading

[](#autoloading)

By default the module classes are not loaded automatically. You can autoload your modules using `psr-4`. For example:

```
{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Modules\\": "Modules/"
    }
  }
}
```

**Tip: don't forget to run `composer dump-autoload` afterwards.**

Preparing to Vue
----------------

[](#preparing-to-vue)

1 - Install JS packages with:

```
- composer require laravel/ui --dev
- php artisan ui bootstrap
- php artisan ui vue
- npm install
- npm install @ckeditor/ckeditor5-build-classic @ckeditor/ckeditor5-vue coffee-script luxon v-money vue-awesome-notifications vue-datetime": "^ vue-filter-date-format vue-filter-date-parse vue-i18n vue-router vue-select vue-the-mask vuejs-datepicker vuejs-loading-plugin vuex weekstart --save-dev

```

2 - Modify resources/js/app.js to:

```
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */
import Vue from "vue";
import Routes from "./router";
import App from "./components/App";
import PaginateComponent from "./components/layout/PaginateComponent";
import VueLoading from 'vuejs-loading-plugin'
import VueFilterDateFormat from 'vue-filter-date-format';
import VueFilterDateParse from 'vue-filter-date-parse'
import VueAWN from "vue-awesome-notifications"
import i18n from './i18n';

// overwrite defaults
Vue.use(VueLoading, {
    dark: false, // default false
    text: 'Loading...', // default 'Loading'
    loading: false, // default false
    //customLoader: myVueComponent, // replaces the spinner and text with your own
    //background: 'rgb(47, 64, 80)', // set custom background
    classes: ['loading-screen-inspinia', 'animated', 'fadeIn'] // array, object or string
});

Vue.use(VueFilterDateFormat, {
    dayOfWeekNames: [
        'Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'
    ],
    dayOfWeekNamesNamesShort: [
        'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'
    ],
    monthNames: [
        'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho',
        'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'
    ],
    monthNamesShort: [
        'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
        'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'
    ]
});

Vue.use(VueFilterDateParse);

Vue.component('paginate-component', PaginateComponent);

let optionsVueAWN = {
    position: "top-right",
    clean: true,
    labels: {
        tip: '',
        info: '',
        success: '',
        warning: '',
        alert: '',
        async: 'Loading',
        confirm: 'Confirmation required',
    },
    icons: {
        enabled: false,
    }
};

Vue.use(VueAWN, optionsVueAWN);

Vue.filter('capitalize', function (value) {
    if (!value) return '';
    value = value.toString();
    return value.charAt(0).toUpperCase() + value.slice(1) + '.....';
});

Vue.filter('currencydecimal', function (value) {
    if (!value) return '-';
    return value.toFixed(2)
});

Vue.filter('fromBoolean', function (value) {
    return value == 1 ? 'Yes' : 'No';
});

const app = new Vue({
    i18n,
    el: '#app',
    router: Routes,
    render: h => h(App),
    data() {
        return {
            componentKey: 0,
            viewKey: 1
        };
    },
    methods: {
        scrollToTop() {
            window.scrollTo({
                top: 0,
                left: 0,
                behavior: 'smooth'
            });
        },
        updateViewKey() {
            this.viewKey += 1;
        }
    }
});

$('#app').tooltip({
    selector: "[data-toggle=tooltip]",
    container: "body"
});

$('.popover-dismiss').popover({
    trigger: 'focus'
});

```

3 - Create resources/js/router.js with:

```
import Vue from "vue";
import VueRouter from "vue-router";
import DashboardComponent from "./components/dashboard/DashboardComponent";
import NotFoundComponent from "./components/NotFoundComponent";

Vue.use(VueRouter);

const router = new VueRouter({
    mode: "history", // hash history abstract
    routes: [
        {
            path: "/",
            name: "dashboard",
            component: DashboardComponent,
            meta: {
                auth: true
            }
        },
        {
            name: 'not-found',
            path: '/not-found',
            component: NotFoundComponent,
        },
        {
            path: '*',
            redirect: '/not-found',
        }
    ],
    scrollBehavior(to, from, savedPosition) {
        return {x: 0, y: 0};
    }
});

router.beforeEach((to, from, next) => {
    console.info(to.meta.auth ? 'Precisa estar logado' : 'Não Precisa estar logado');
    /*if (to.meta.auth) {
        return router.push({name: 'login'});
    }*/
    next();
});

export default router;

```

4 - App.vue example:

```

    export default {
        name: "App",
        mixins: {},
        components: {},
        data() {

        },
    }

```

5 - Configure your web.php:

```
Route::get('/{any}', 'PanelController@index')->where('any', '^(?!api).*$');

Route::get('/', function(){
    return view('errors.500');
})->name('login');

```

6 - Configure your PanelController.php:

```
namespace App\Http\Controllers;

class PanelController extends Controller
{
    public function index() {
        return view('panel');
    }
}

```

7 - Configure your initial view:

```

    Laravel

```

8 - See commands:

```
php artisan rlustosa

```

9 - After generating a module, add the service provider in the providers section of config/app.php

USEFUL COMMANDS
---------------

[](#useful-commands)

- ***php artisan rlustosa:make-module product product --force &amp;&amp; chmod 777 -R ./*** Gerar Módulo completo
- ***php artisan rlustosa:make-code product product -s --force &amp;&amp; chmod 777 -R ./*** Gerar Scaffold de código
- ***php artisan rlustosa:make-code product product -c --force &amp;&amp; chmod 777 -R ./ &amp;&amp; npm run watch*** Gerar os ".Vue" funcionais

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

[](#documentation)

You'll find installation instructions and full documentation on ###########.

Credits
-------

[](#credits)

- [Rupert Brasil Lustosa](https://github.com/rupertlustosa)

TODO
----

[](#todo)

- Atualizar arquivo de rotas do Laravel (Atualmente está sendo sobrescrito)
- Gerar views html

About Rupert Brasil Lustosa
---------------------------

[](#about-rupert-brasil-lustosa)

Rupert Lustosa is a freelance web developer specialising on the PHP and Laravel framework ############.

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~23 days

Total

2

Last Release

2249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4881bafb0661042771ac25f194b165e0a9a095961d51b51884029ec96109a09c?d=identicon)[rupertlustosa](/maintainers/rupertlustosa)

---

Top Contributors

[![rupertlustosa](https://avatars.githubusercontent.com/u/3456840?v=4)](https://github.com/rupertlustosa "rupertlustosa (74 commits)")

### Embed Badge

![Health badge](/badges/rlustosa-laravel-generator/health.svg)

```
[![Health](https://phpackages.com/badges/rlustosa-laravel-generator/health.svg)](https://phpackages.com/packages/rlustosa-laravel-generator)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

1481.0k](/packages/eliashaeussler-typo3-form-consent)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[inspiredminds/contao-fieldset-duplication

Contao extension to allow the duplication of form fieldsets in the front end by the user for additional input fields.

158.2k1](/packages/inspiredminds-contao-fieldset-duplication)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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