1. Go to this page and download the library: Download skagarwal/generators library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
skagarwal / generators example snippets
app/
|
|_Foo/
|
|_Foo.php // The Eloquent Model
|
|_Contracts/
|
|_FooRepository.php // black interface
|
|_Events/
|
|_Jobs/
|
|_Listeners/
|
|_Repositories/
|
|_EloquentFooRepository.php // impletements the FooRepository.php interface out of the box.
php artisan create:model Foo ---migration
app/
|
|_Foo/
|
|_Foo.php // The Eloquent Model
|
|_Contracts/
|
|_FooRepository.php // black interface
|
|_Events/
|
|_Policies/
|
|_Jobs/
|
|_Listeners/
|
|_Repositories/
|
|_EloquentFooRepository.php // impletements the FooRepository.php interface out of the box.