cms/app/Console/Commands/MakeRepository.php

36 lines
689 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Console\GeneratorCommand;
class MakeRepository extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $name = 'make:repository';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Make a repository';
protected $type = 'Repository';
protected function getStub()
{
return __DIR__ . '/stubs/Repository.stub';
}
protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace . '\Repositories';
}
}