diff --git a/src/Illuminate/Routing/PendingSingletonResourceRegistration.php b/src/Illuminate/Routing/PendingSingletonResourceRegistration.php index 32ed4d723844..c17ecbfb091d 100644 --- a/src/Illuminate/Routing/PendingSingletonResourceRegistration.php +++ b/src/Illuminate/Routing/PendingSingletonResourceRegistration.php @@ -90,12 +90,11 @@ public function except($methods) /** * Indicate that the resource should have creation and storage routes. * - * @param bool $creatable * @return $this */ - public function creatable($creatable = true) + public function creatable() { - $this->options['creatable'] = $creatable; + $this->options['creatable'] = true; return $this; } @@ -103,12 +102,11 @@ public function creatable($creatable = true) /** * Indicate that the resource should have a deletion route. * - * @param bool $destroyable * @return $this */ - public function destroyable($destroyable = true) + public function destroyable() { - $this->options['destroyable'] = $destroyable; + $this->options['destroyable'] = true; return $this; }