Upgrade to Laravel 10
This commit is contained in:
parent
c4d7dc31d5
commit
16b120bc73
142 changed files with 1676 additions and 2019 deletions
|
@ -14,7 +14,7 @@ class NoteObserver
|
|||
/**
|
||||
* Listen to the Note created event.
|
||||
*/
|
||||
public function created(Note $note)
|
||||
public function created(Note $note): void
|
||||
{
|
||||
$text = Arr::get($note->getAttributes(), 'note');
|
||||
if ($text === null) {
|
||||
|
@ -36,7 +36,7 @@ class NoteObserver
|
|||
/**
|
||||
* Listen to the Note updated event.
|
||||
*/
|
||||
public function updated(Note $note)
|
||||
public function updated(Note $note): void
|
||||
{
|
||||
$text = Arr::get($note->getAttributes(), 'note');
|
||||
if ($text === null) {
|
||||
|
@ -60,7 +60,7 @@ class NoteObserver
|
|||
/**
|
||||
* Listen to the Note deleting event.
|
||||
*/
|
||||
public function deleting(Note $note)
|
||||
public function deleting(Note $note): void
|
||||
{
|
||||
$note->tags()->detach();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue