lapcs/commands

This package is abandoned and no longer maintained. The author suggests using the instance-code/repository package instead.

A command hmvc laravel and lumen

Installs: 108

Dependents: 1

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 1

Open Issues: 3

Type:laravel

dev-dev 2018-05-08 03:28 UTC

This package is auto-updated.

Last update: 2023-07-17 03:26:56 UTC


README

lumen-Modules

Laravel/lumen laravel-modules/lumen-modules
5.6 ^dev

lapcs/commands is a Laravel or lumen package which created to manage your large Laravel or lumen app using modules. Module is like a Laravel or lumen package, it has some views, controllers,helper,component (vuejs) or models. This package is supported and tested in Laravel 5.* or lumen 5.*

With one big added bonus that the original package didn't have: tests.

Install

To install through Composer, by run the following command:

composer require lapcs/commands:1.3.x-dev

Lumen config

 //bootstrap\app.php
 Add : $app->register(Lapcs\Commands\CommandServiceProvider::class);

Laravel config

  //config\app.php
 'providers' => [
	...
	Lapcs\Commands\CommandServiceProvider::class,
 ]

Setup HMVC

	// Create folder Modules default to app\Modules
	php artisan ans:setup 

	// Add ModuleServiceProvider to config
	// Laravel : config\app.php
	'providers' => [
		...
		App\Modules\ModuleServiceProvider::class,
	 ]

	// Lumen : bootstrap\app.php
	Add : $app->register(App\Modules\ModuleServiceProvider::class);

	// Make module : Ex Master
	php artisan ans:module master

	// Make ExController in module Master 
	php artisan ans:controller master Ex OR php artisan ans:controller master ExController

	// Make Request  
	php artisan ans:request master MasterRequest

	... to help command
	php artisan ans:help

Command helper

	php artisan ans:help 

Publish config

	php artisan vendor:publish --tag=config

The package will automatically register a service provider and alias.

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

Autoloading

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

Documentation

You'll find installation instructions and full documentation on : comming son....

Credits ....

About lapcs command

lapcs command is a freelance web developer specialising on the Laravel/lumen framework.

License

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