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

use Laravel built in bootTraits to perform deletion callback #74

Closed
wants to merge 2 commits into from
Closed

use Laravel built in bootTraits to perform deletion callback #74

wants to merge 2 commits into from

Conversation

uyab
Copy link
Contributor

@uyab uyab commented Oct 12, 2015

This also fix #67


$this->media()->get()->map(function (Media $media) {
$media->delete();
static::deleted(function($model){

Choose a reason for hiding this comment

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

  • Expected 1 space after FUNCTION keyword; 0 found
  • Expected 1 space after closing parenthesis; found 0

@freekmurze
Copy link
Member

The tests are failing. Could you fix that?

@uyab
Copy link
Contributor Author

uyab commented Oct 13, 2015

Test failed when using --prefer-lowest, caused by following issue: danielstjules/Stringy#69

@freekmurze
Copy link
Member

I'm going to leave this for now. Upping the dependancies is considered a breaking change and I'm not ready for a new major version. I'll fix this when tagging a new major version in future.

@freekmurze freekmurze closed this Oct 15, 2015
@uyab
Copy link
Contributor Author

uyab commented Oct 16, 2015

Just curious, why use --prefer-lowest ?

@freekmurze
Copy link
Member

Here is some background info: http://evertpot.com/testing-composer-prefer-lowest/

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.

Trait delete method conflict
3 participants