Skip to content

Commit c0d09c5

Browse files
authored
Removes method parameter (#46677)
1 parent d68fefe commit c0d09c5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Illuminate/Routing/PendingSingletonResourceRegistration.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,23 @@ public function except($methods)
9090
/**
9191
* Indicate that the resource should have creation and storage routes.
9292
*
93-
* @param bool $creatable
9493
* @return $this
9594
*/
96-
public function creatable($creatable = true)
95+
public function creatable()
9796
{
98-
$this->options['creatable'] = $creatable;
97+
$this->options['creatable'] = true;
9998

10099
return $this;
101100
}
102101

103102
/**
104103
* Indicate that the resource should have a deletion route.
105104
*
106-
* @param bool $destroyable
107105
* @return $this
108106
*/
109-
public function destroyable($destroyable = true)
107+
public function destroyable()
110108
{
111-
$this->options['destroyable'] = $destroyable;
109+
$this->options['destroyable'] = true;
112110

113111
return $this;
114112
}

0 commit comments

Comments
 (0)