![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/vendor/santigarcor/laratrust/src/Console/ |
<?php namespace Laratrust\Console; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Facades\Config; class MakeRoleCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'laratrust:role'; /** * The console command description. * * @var string */ protected $description = 'Create Role model if it does not exist'; /** * The type of class being generated. * * @var string */ protected $type = 'Role model'; /** * Get the stub file for the generator. * * @return string */ protected function getStub() { return __DIR__.'/../../stubs/role.stub'; } /** * Get the desired class name from the input. * * @return string */ protected function getNameInput() { return Config::get('laratrust.models.role', 'Role'); } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace; } /** * Get the console command arguments. * * @return array */ protected function getArguments() { return []; } }