Support the ongoing development of →
posted 6 years ago
Last updated 1 year ago.

Try below given script in welcome.blade.php file

{!! Form::open(['url' => route('globalcalc.tonperha'),'method'=>'post','id' => 'Calculate']) !!}

this route add in route file


Hope this useful for you !


I figured out the solution.

in my route file /routes/web.php I created a new named route that point to the controller.

Route::post('calctonperha', [ 'as' => 'calctonperha', 'uses' => 'globalcalc@tonperha' ]);

and in my view the following code with form::open

{!! Form::open(array('route' => 'calctonperha')) !!}

Thanks @saurabhd I see you have given almost same solution as I figured out. I did not see it until after it was to late to mark it as solution.


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

NielBuys nielbuys Joined 26 Apr 2017


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

Your logo here?

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

© 2023 - All rights reserved.