Implement Keystone environment deployments
This commit is contained in:
@@ -20,7 +20,7 @@ class GenerateJSEnums extends Command
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
$enums = base_path('app/enums');
|
||||
$enums = app_path('Enums');
|
||||
|
||||
$this->load($enums);
|
||||
|
||||
@@ -87,7 +87,7 @@ class GenerateJSEnums extends Command
|
||||
|
||||
// Skip format, JS date formats are different to PHP ones.
|
||||
if ($name !== 'Format') {
|
||||
file_put_contents(base_path('resources/js/Enums/'.$name.'.js'), $js);
|
||||
file_put_contents(resource_path('js/enums/'.$name.'.js'), $js);
|
||||
$this->info('Stored '.$enum);
|
||||
} else {
|
||||
$this->info('Skipped '.$name.'s');
|
||||
|
||||
Reference in New Issue
Block a user