Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown on creating migrations to create tables #26

Open
asaad-modus opened this issue Oct 14, 2019 · 1 comment
Open

Exception thrown on creating migrations to create tables #26

asaad-modus opened this issue Oct 14, 2019 · 1 comment

Comments

@asaad-modus
Copy link

Command

php artisan make:migration CreateNewTable

Will throw the following exception

   Illuminate\Contracts\Filesystem\FileNotFoundException  : File does not exist at path /m360/c360/webroot/vendor/chrishalbert/laravel-nomadic/src/stubs/create.stub

  at /m360/c360/webroot/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:41
    37|         if ($this->isFile($path)) {
    38|             return $lock ? $this->sharedGet($path) : file_get_contents($path);
    39|         }
    40| 
  > 41|         throw new FileNotFoundException("File does not exist at path {$path}");
    42|     }
    43| 
    44|     /**
    45|      * Get contents of a file with shared access.

  Exception trace:

  1   Illuminate\Filesystem\Filesystem::get("/m360/c360/webroot/vendor/chrishalbert/laravel-nomadic/src/stubs/create.stub")
      /m360/c360/webroot/vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationCreator.php:103

  2   Illuminate\Database\Migrations\MigrationCreator::getStub("new_table")
      /m360/c360/webroot/vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationCreator.php:55

It seems that this stub file is missing laravel-nomadic/src/stubs/create.stub

@twoodard-edr
Copy link

FWIW I found that if I copied blank.stub to create.stub and update.stub (within the same directory) the exception did not occur and make:migration seems to run properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants