We would need to see more than that, but your Form::model
looks like the wrong setup for how to pass the route at the very least.
$user1 = User::find( Auth::user()->id );
print Form::model($user1, array('route' => 'user.edit', $user1->id));
echo Form::label('name');
echo Form::text('name' );
echo Form::submit('save');
print Form::close() ;
Route::post('/userPost', array('as' => 'userPost', 'uses' => 'HomeController@userPost'));
$user1 = User::find( Auth::user()->id );
print Form::model($user1, array('route' => 'userPost', $user1->id));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community