amikavousi/app-maker

AppMaker, designed to help modularize your Laravel project. With AppMaker, you can easily organize your code and improve your project's scalability.

Downloads

14

Stars

3

Version

AppMaker

With AppMaker You can create the Apps or Modules you want for your Laravel Application.

Installation

Open your Terminal in your project dir and run:

composer require amikavousi/app-maker

Usage

  1. Now you can use this command for Create new App or Module :
php artisan app:make AppName
  1. You can now see a new directory called 'Module' in your Laravel project where your added apps are located. But before you can access the added apps, you must first add the 'Modules' directory to your composer.json autoload:

composer

!!!! Then Run !!! :

composer dump-autoload
  1. To access your added app, you must add your Service Provider located at Modules/YourAppName/Provider class to the app.php file in the 'config' directory:

app.php

  1. To test your app, simply run php artisan serve in your terminal. Then, open your browser and visit localhost:8000/AppName/AppName. You will see:

test.php

Comands

after you run php artisan app:add -h you will see a good documentation about commands and available options:

Description:
  With this command you can add your Models or Controller or ... to your Apps.
    Command Format: php artisan app:add AppName -flag FileName

Usage:
  app:add [options] [--] <appName> <name>

Arguments:
  appName               Your App Dir Name
  name                  Your File name

Options:
  -c, --controller      Create Controller for your App
  -M, --model           Create Model for your App
  -m, --migration       Create migration for your App
  -w, --middleware      Create Middleware for your App
  -d, --validation      Create Validation Middleware for your App

For Example for add a new Controller to your App you can use this command:

php artisan app:add AppName -c FileNameForController
-------------------------or--------------------------
php artisan app:add AppName --controller FileName

The last word

We sincerely appreciate your consideration in giving us a shining star if you find our efforts valuable. 🫢🏻🌟🀍

Your support and recognition serve as a true inspiration to us. πŸ€œπŸ»πŸ€›πŸΏ

We highly value your feedback and encourage you to share any concerns or suggestions you may have. πŸ™πŸ»

Our commitment is to promptly address any issues and create a delightful experience for you.

Your contributions through pull requests are truly cherished as we work together harmoniously to elevate this project to new heights. πŸ‘₯

So we conclude that it works 🌈 - Kian Pirfalak

Support Email: [email protected]

amikavousi

Author

amikavousi