-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Laravel 6.18 onward support #4
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
"description": "Package to fast generate Resources in Larapi distribution. Very small, very simple but works.", | ||
"require": { | ||
"php": "^7.0", | ||
"laravel/framework": "~5.6" | ||
"laravel/framework": "~6.18" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~6.0", | ||
"mockery/mockery": "0.9.*" | ||
"phpunit/phpunit": "~8.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated phpunit version required for laravel 6 |
||
"mockery/mockery": "1.3.*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated mockery to meet phpUnit 8 needs |
||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ class DummyClass | |
{ | ||
$dummyname = $this->dummynameRepository->create($data); | ||
|
||
$this->dispatcher->fire(new DummyModelWasCreated($dummyname)); | ||
$this->dispatcher->dispatch(new DummyModelWasCreated($dummyname)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since laravel 5 fire has been deprecated in favor of dispatch, so updating it so generated services remains working properly |
||
|
||
return $dummyname; | ||
} | ||
|
@@ -60,7 +60,7 @@ class DummyClass | |
|
||
$this->dummynameRepository->update($dummyname, $data); | ||
|
||
$this->dispatcher->fire(new DummyModelWasUpdated($dummyname)); | ||
$this->dispatcher->dispatch(new DummyModelWasUpdated($dummyname)); | ||
|
||
return $dummyname; | ||
} | ||
|
@@ -71,7 +71,7 @@ class DummyClass | |
|
||
$this->dummynameRepository->delete($dummynameId); | ||
|
||
$this->dispatcher->fire(new DummyModelWasDeleted($dummyname)); | ||
$this->dispatcher->dispatch(new DummyModelWasDeleted($dummyname)); | ||
} | ||
|
||
private function getRequestedDummyModel($dummynameId) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for Laravel 6.18.