Angular generators for Artisan. Originally created at laravel5-angular-material-starter.
artisan ng:page name #New page inside angular/app/pages/
artisan ng:dialog name #New custom dialog inside angular/dialogs/
artisan ng:component name #New component inside angular/app/components/
artisan ng:service name #New service inside angular/services/
artisan ng:filter name #New filter inside angular/filters/
artisan ng:config name #New config inside angular/config/
If you're using the starter project, then it's already pre-installed.
composer require laravelangular/generators
//and then add the provider in config/app.php
LaravelAngular\Generators\LaravelServiceProvider::class,
php artisan vendor:publish
View Angular Generators documentation
Originally created at laravel5-angular-material-starter then moved to a separate package by @m33ch
- Do not append the word
service
, it will be automatically added for you.