private function relationship($path, $model)
    {
        $lines = file($path, FILE_IGNORE_NEW_LINES);
        $last = count($lines) - 1;
        unset($lines[$last]);
        $result = implode("\n", array_values($lines));
        $model = view('scaffold-interface::template.ManyToMany.model', ['model' => $model])->render();
        $result = $result."\n\n\t".$model."\n".'}'."\n";

        return file_put_contents($path, $result);
    }
private function relationship($path, $model)
    {
        $lines = file($path, FILE_IGNORE_NEW_LINES);
        $last = count($lines) - 1;
        unset($lines[$last]);
        $result = implode("\n", array_values($lines));
        $model = view('scaffold-interface::template.ManyToMany.model', ['model' => $model])->render();
        $result = $result."\n\n\t".$model."\n".'}'."\n";

        return file_put_contents($path, $result);
    }
private function relationship ( $ path , $ model ) { $ lines = file ( $ path , FILE_IGNORE_NEW_LINES ) ; $ last = count ( $ lines ) - 1 ; unset ( $ lines [ $ last ] ) ; $ result = implode ( "\n" , array_values ( $ lines ) ) ; $ model = view ( 'scaffold-interface::template.ManyToMany.model' , [ 'model' => $ model ] ) -> render ( ) ; $ result = $ result . "\n\n\t" . $ model . "\n" . '}' . "\n" ; return file_put_contents ( $ path , $ result ) ; }
Generate relationships methods.

@return bool
Generate relationships methods .