private function checkRequirements()
{
foreach ($this->files as $name => $path) {
if (!file_exists($path)) {
$this->error('Oops, you are missing required files! Typo in the model name?');
die;
}
if ($str = file_get_contents($this->files['Index'])) {
$pattern = '/Begin Vue CDN Call/';
if (!$this->patternMatchView($pattern, $str)) {
$this->error('
Sorry, you don\'t have the vue.js dependency in your index file.
Our make:chart command only works with vue templates.
If you are using vue templates, then it\'s because you don\'t have
the CDN call commented the way we need it in the file. Run a new make views
command with vue template with the latest version of ViewMaker to see
how it should be formatted.');
die;
}
}
}
return true;
}