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

Fix voyager models not returning save result #4881

Merged

Conversation

MrCrayon
Copy link
Collaborator

@MrCrayon MrCrayon commented Apr 9, 2020

Result is needed while checking on restore, it's also how parent method is defined.
https://github.com/laravel/framework/blob/55070d4e57abd710783d29329d6f6846b570f452/src/Illuminate/Database/Eloquent/Model.php#L666

Fixes #4880

@codecov
Copy link

codecov bot commented Apr 9, 2020

Codecov Report

Merging #4881 into 1.4 will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##                1.4    #4881   +/-   ##
=========================================
  Coverage     62.93%   62.93%           
  Complexity     1373     1373           
=========================================
  Files           194      194           
  Lines          3996     3996           
=========================================
  Hits           2515     2515           
  Misses         1481     1481           
Impacted Files Coverage Δ Complexity Δ
src/Models/Page.php 100.00% <100.00%> (ø) 4.00 <0.00> (ø)
src/Models/Post.php 100.00% <100.00%> (ø) 6.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b70573...09f9b3d. Read the comment docs.

Copy link
Collaborator

@emptynick emptynick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@emptynick emptynick merged commit 55d6d04 into thedevdojo:1.4 Apr 9, 2020
@MrCrayon MrCrayon deleted the fix-pages-posts-do-not-return-save-result branch May 12, 2020 04:11
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.

Error still show up after successfully restored a post
2 participants