Looking to hire Laravel developers? Try LaraJobs

laravel-make maintained by danielsundermeier

Description
Description.
Last update
2020/10/27 05:39 (dev-master)
License
Links
Downloads
63

Comments
comments powered by Disqus

Laravel Make

Extended Laravel Make Commands. Creates Tests, Views and a policy with stubs.

Console output

Installation

You may install the package via Composer:

composer require danielsundermeier/laravel-make

After that you may copy the stubs.

php artisan make:install

Usage

Use your make commands just like before.

Make Model

php artisan make:model Model -a

This will create additionaly:

  • Unit Test
  • ControllerTest
  • Views
    • index
    • show
    • edit
  • Policy

Parent Option

The parent Option will create a nested Controller and a nested Test

php artisan make:model Model -a --parent=Parent
php artisan make:test ModelTest --parent=Parent

Make Views

php artisan make:view model/index

Make Traits

php artisan make:trait Foo\\Bar