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

[5.x] Fix blueprint error when publishing Eloquent Driver migrations #320

Merged

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Sep 5, 2023

This pull request fixes an issue when setting up the Eloquent Driver alongside Runway.

Essentially, when you're in the process of migrating to the Eloquent driver, you change the repositories, then run a vendor:publish command to publish the migrations.

However, when trying to publish the migrations (or run any other artisan commands for that matter), you'd see an error relating to blueprints. This was happening as Runway was trying to "discover" the resources from the configuration file, including looking up its blueprint.

This PR fixes the issue by catching any exceptions when finding blueprints, then ignoring the resource if the app is running in the console.

Fixes #319.

@duncanmcclean duncanmcclean changed the title Fix blueprint error when publishing Eloquent Driver migrations [5.x] Fix blueprint error when publishing Eloquent Driver migrations Sep 5, 2023
@duncanmcclean duncanmcclean merged commit 2f2c32a into 5.x Sep 5, 2023
8 of 10 checks passed
@duncanmcclean duncanmcclean deleted the fix/blueprints-error-when-publishing-eloquent-driver-assets branch September 5, 2023 23:38
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Released as part of v5.2.1.

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

Successfully merging this pull request may close these issues.

Not able to install Eloquent Driver in combination with Runway
1 participant