benepfist / artisan-utility by benepfist

Add Alias and ServiceProvider using the cli
44
0
2
Package Data
Maintainer Username: benepfist
Maintainer Contact: pfisterer.bene@gmail.com (Benedict Pfisterer)
Package Create Date: 2014-01-06
Package Last Update: 2022-01-17
Language: PHP
License: Unknown
Last Refreshed: 2024-12-21 03:02:21
Package Statistics
Total Downloads: 44
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Build Status

Installation

First ensure you have the latest version of composer installed.

Run composer self-update.

Install this package through Composer. To your composer.json file, add:

"require-dev": {
	"benepfist/artisan-utility": "dev-master"
}

Next, run composer install --dev to download it.

Add the service provider to app/config/local/app.php, within the providers array.

'providers' => append_config(
	array(
		// ...

		'Benepfist\ArtisanUtility\ArtisanUtilityServiceProvider',
		)
	),
)

Run php artisan to view the new laravel:add command:

  • laravel:add --provider="DemoPackage\Demo\DemoServiceProvider" - Add a new ServiceProvider
  • laravel:add --alias="Demo => DemoPackage\Facade\Demo" - Add a new Alias