Exemplo n.º 1
0
    private function getParentModelCode(array $tokens)
    {
        $tokenBuilder = new CrudTokens($tokens);
        $content = <<<EOD
    public function :::childRelation:::()
    {

        return \$this->hasMany('App\\:::child:::');
    }
EOD;
        $content = $tokenBuilder->insertTokensIntoContent($content);
        return $content;
    }