This is where your description should go. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require omenejoseph/scafolder --dev
This library simplifies file/class scafolding for laravel developers looking to have an organized and easy way to create fast becoming popular classes like Repositories, Services and Util helpers via bash commands.
Repository pattern is fast becoming a choice design pattern for many laravel developers. Setting up a repository requires creating as much as 2 classes and one 1 interface. With this library, you can set up a Repository with just one command
$ php artisan make:repo Model
Here model represents the Model you want to create the repository for such as Post or User. This commands created 3 files:
- The repository class (namespace: App\Repositories)
- The contract that the repository implements (namespace: App\Contracts)
- A Service Provider class that binds the interface to the repository (namespace: App\ServiceProviders)
After that, all you need to do is register the Service provider generated in your config.app.providers array so it would be auto discovered. This class
Its fast becoming a norm for laravel developers to have a lean controller and model class. This has given rise to many developers opting to have service classes servicing each controller. These service classes house the bulk of the logic usually hosted in the controller class thus making it very lean. The controller just has to instantiate the class and make use of methods that perform actions for the controller. Creating a service class:
$ php artisan make:service Model
This creates a service class in the App\Services namespace
Many developers rely on traits to abstract common methods to classes. With this library, Creating a trait is as easy and running an artisan command
$ php artisan make:trait TraitName
This creates a trait in the App\Traits namespace
We are looking to adding commands to create facades and util classes
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
- [Omene Joseph Ogheneruno][https://omenejoseph.com.ng]
license. Please see the license file for more information.