H
H
HeartOfProgrammer2016-03-01 20:37:11
Laravel
HeartOfProgrammer, 2016-03-01 20:37:11

How to pass in the form action as a controller?

I think it was not worth creating a "Question", but because I can not understand one thing. How to transfer it is admissible in this form:
<form method="POST" action="" class="col s12">
Controller with a method?
Tried like this

<form method="POST" action="ProductController.store" class="col s12">

so
<form method="POST" action="ProductController/store" class="col s12">

One fig does not work.
PS I apologize for clogging up this site.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ArturSitnikoff, 2016-03-01
@ArturSitnikoff

action=" / ProductController/store"
action=" htp://site.ru/ ProductController/store"

E
Evgeny Perin, 2016-03-01
@seoperin

https://laravel.com/docs/5.2/helpers#method-action

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question