Support the ongoing development of Laravel.io →
posted 7 years ago
Forms
Last updated 1 year ago.
0

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.

0
    $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() ;
Last updated 7 years ago.
0

Route::post('/userPost', array('as' => 'userPost', 'uses' => 'HomeController@userPost'));

   $user1 = User::find( Auth::user()->id );
    print Form::model($user1, array('route' => 'userPost', $user1->id));
Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.