コード例 #1
0
ファイル: Matrix.php プロジェクト: typerocket/laravel
 private function cleanFileName($name)
 {
     $name = Sanitize::underscore($name);
     $name = str_replace('-', ' ', $name);
     return ucwords($name);
 }
コード例 #2
0
ファイル: Field.php プロジェクト: typerocket/laravel
 /**
  * Set name of field. Not the same as the html name attribute.
  *
  * @param string $name
  *
  * @return $this
  */
 public function setName($name)
 {
     $this->name = Sanitize::underscore($name);
     return $this;
 }