Skip to content

Commit

Permalink
fixed restful route put method cannot found controller
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed May 9, 2017
1 parent 5e542ce commit 08c1f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ function (Column $column) use (&$hasCreatedColumn, &$hasAvailable, &$hasUpdatedC

return;
}
if ('created' === $column->getName()) {
if ('created_at' === $column->getName()) {
$hasCreatedColumn = true;

return;
}
if ('updated' === $column->getName()) {
if ('updated_at' === $column->getName()) {
$hasUpdatedColumn = true;

return;
Expand Down
5 changes: 5 additions & 0 deletions src/ServiceProvider/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public function patch($path, $callback, array $defaults = [])
return parent::patch($path, $this->concat($callback), $defaults);
}

public function put($path, $callback, array $defaults = [])
{
return parent::put($path, $this->concat($callback), $defaults);
}

public function delete($path, $callback, array $defaults = [])
{
return parent::delete($path, $this->concat($callback), $defaults);
Expand Down

0 comments on commit 08c1f7d

Please sign in to comment.