Browse Source

Update BaseGenerator docblock

tags/1.3.2
Nafies Luthfi 7 years ago
parent
commit
ab57c3055f
  1. 5
      src/Generators/BaseGenerator.php

5
src/Generators/BaseGenerator.php

@ -121,6 +121,11 @@ abstract class BaseGenerator implements GeneratorContract
return $this->files->get(__DIR__.'/../stubs/'.$stubName.'.stub');
}
/**
* Check whether we generating API CRUD or not.
*
* @return bool
*/
protected function isForApi()
{
return $this->command->getName() == 'make:crud-api';

Loading…
Cancel
Save