EloquentFilter\Commands\MakeEloquentFilter::compileStub PHP Method

compileStub() public method

public compileStub ( )
    public function compileStub()
    {
        if ($this->files->exists($path = $this->getPath())) {
            $this->error("\n\n\t" . $path . ' Already Exists!' . "\n");
            die;
        }
        $this->makeDirectory($path);
        $tmp = $this->applyValuesToStub($this->files->get(__DIR__ . '/../stubs/modelfilter.stub'));
        $this->files->put($path, $tmp);
    }