statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 74 forks source link

After switching to new version got this error #280

Closed golamrabbi3 closed 4 months ago

golamrabbi3 commented 4 months ago

composer.json

"statamic/cms": "^4.57", "statamic/eloquent-driver": "^3.4",



   ErrorException 

  copy(/Users/mgrabbi/Sites/laravel/patrimoniomaior/vendor/statamic/eloquent-driver/src/Updates/../../database/migrations/create_global_variables_table.php.stub): Failed to open stream: No such file or directory

  at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:327
    323▕      * @return bool
    324▕      */
    325▕     public function copy($path, $target)
    326▕     {
  ➜ 327▕         return copy($path, $target);
    328▕     }
    329▕ 
    330▕     /**
    331▕      * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.

      +22 vendor frames 
  23  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan statamic:install --ansi handling the post-autoload-dump event returned with error code 1```
ryanmitchell commented 4 months ago

Thanks, I've opened a PR here with the fix: https://github.com/statamic/eloquent-driver/pull/281