首頁 > 後端開發 > php教程 > 每天laravel-20160725| Genaerator command-2

每天laravel-20160725| Genaerator command-2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-20 12:30:25
原創
851 人瀏覽過

/** * Get the stub file for the generator. * * @return string */abstract protected function getStub();//Get the stub file for the generator/** * Execute the console command. * * @return bool|null */public function fire()//Execute the console command{    $name = $this->parseName($this->getNameInput());// $name use a function to parse it and use a function to get Input name    $path = $this->getPath($name);// from the name get path ,    if ($this->alreadyExists($this->getNameInput())) {// if know the name        $this->error($this->type.' already exists!');        return false;    }// tell the false messages    $this->makeDirectory($path);// make dir    $this->files->put($path, $this->buildClass($name));// put file to the path    $this->info($this->type.' created successfully.');// write log.}
登入後複製


本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板