{"repo":"bpocallaghan/generators","free":true,"listed":false,"github":"https://github.com/bpocallaghan/generators","clone":"git clone https://github.com/bpocallaghan/generators.git","description":"Laravel File Generators with config and publishable stubs","language":"PHP","stars":120,"topics":["php","laravel","artisan","generate","class","make","commands","file","publishable-stubs","pivot-tables"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Laravel File Generators Custom Laravel File Generators with a config file and publishable stubs. You can publish the stubs. You can add your own stubs to generate. This package is being used in Admin Starter Project that focuses on test driven development and has the foundation ready for you. Commands Option for all the commands - --force This will override the existing file, if it exists. - --test This will also generate a test file. Option for all the commands, except views and migration:pivot - --plain This will use the .plain stub of the command (generate an empty controller) Customization This is for all except the migration and migration:pivot commands You can specify a custom name of the file to be generated. You can add the --plain or --force options. You can override the default stub to be used. You can create your own stubs with the available placeholders. You can create new settings' types, for example: - 'exception' = ['namespace' = '\\Exceptions', 'path' = './app/Exceptions/', 'postfix' = 'Exception'], Available placeholders Views Custom Stubs Installation Update your project's composer.json file. Add the Service Provider (Laravel 5.5+ has automatic discovery of packages) You'll only want to use these generators for local development, add the provider in app/Providers/AppServiceProvider.php : Run php artisan command to see the new commands in the generate: section Usage - Models - Views - Controllers - Migrations - Pivot Tables - Database Seeders - Resource - Repo","default_branch":null,"files":null,"tree":[],"storefront":"/r/bpocallaghan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bpocallaghan/generators/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}