danielsundermeier/laravel-make

0.4.0 2020-10-27 04:39 UTC

This package is auto-updated.

Last update: 2024-09-10 21:31:01 UTC


README

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