Amranidev\ScaffoldInterface\Parsers\Parser::plural PHP 메소드

plural() 공개 메소드

Get the entity name plural.
public plural ( ) : string
리턴 string
    public function plural()
    {
        return str_plural(str_slug($this->data['TableName'], '_'));
    }

Usage Example

예제 #1
0
 /**
  * Get migration file path.
  *
  * @return string
  */
 private function migrationPath()
 {
     $FileName = date('Y') . '_' . date('m') . '_' . date('d') . '_' . date('his') . '_' . $this->parser->plural() . '.php';
     return config('amranidev.config.migration') . '/' . $FileName;
 }