Heim > Backend-Entwicklung > PHP-Tutorial > 每天laravel-20160725| Genaerator command-2

每天laravel-20160725| Genaerator command-2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-20 12:30:25
Original
851 Leute haben es durchsucht

/** * 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.}
Nach dem Login kopieren


Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage