Initial Commit
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace mpba\Modules\Traits;
|
||||
|
||||
trait ModuleCommandTrait
|
||||
{
|
||||
/**
|
||||
* Get the module name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModuleName()
|
||||
{
|
||||
$module = $this->argument('module') ?: app('modules')->getUsedNow();
|
||||
|
||||
$module = app('modules')->findOrFail($module);
|
||||
|
||||
return $module->getStudlyName();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user