Skip to content

Commit

Permalink
Removes method parameter (#46677)
Browse files Browse the repository at this point in the history
  • Loading branch information
drradao committed Apr 4, 2023
1 parent d68fefe commit c0d09c5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Illuminate/Routing/PendingSingletonResourceRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,23 @@ 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;
}

/**
* 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;
}
Expand Down

0 comments on commit c0d09c5

Please sign in to comment.