Skip to content

Commit

Permalink
Add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Sep 1, 2014
1 parent b7f61a9 commit 978712d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Way/Generators/templates/scaffolding/controller.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php namespace $NAMESPACE$;

use Illuminate\Routing\Controller;
use Redirect;
use App\$MODEL$;
use Redirect, Request;

class $NAME$ extends Controller {

Expand Down Expand Up @@ -35,7 +34,7 @@ class $NAME$ extends Controller {
*/
public function store()
{
$MODEL$::create($data);
$MODEL$::create(Request::get());

return Redirect::route('$COLLECTION$.index');
}
Expand Down Expand Up @@ -76,7 +75,7 @@ class $NAME$ extends Controller {
{
$$RESOURCE$ = $MODEL$::findOrFail($id);

$$RESOURCE$->update($data);
$$RESOURCE$->update(Request::get());

return Redirect::route('$COLLECTION$.index');
}
Expand Down

0 comments on commit 978712d

Please sign in to comment.