首页 > 后端开发 > php教程 > 每天laravel-20160725| Genaerator command-2

每天laravel-20160725| Genaerator command-2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-20 12:30:25
原创
849 人浏览过

/** * 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.}
登录后复制


来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板