Create a custom class at any path with an optinal test.
Example:
$ php artisan make:class Custom/Folder/MyCoolClassWill create a app/Custom/Folder/MyCoolClass.php file containing:
<?php
namespace App\Custom\Folder;
class MyCoolClass
{
//
}Use the --test option to create a corresponding test in test/Unit/Custom/Folder/MyCoolClassTest.php using the default laravel unit test stub.
Publish the stub using:
php artisan vendor:publish --tag=stubAnd edit the stubs/class.stub file to your liking =)
You can install the package via composer:
composer require iak/make-class --devcomposer testPlease see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.