Created
February 9, 2018 04:23
-
-
Save simplyniceweb/3a90e4fe8d0d4007466bcd033798ef7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Form builder ### | |
public function form(Request $request) | |
{ | |
if("POST" == $request->getMethod()) { | |
if ($form->isValid()) { | |
$data = $form->getData(); | |
echo $data->getTitle(); | |
} | |
} | |
} | |
### Static Form ### | |
public function form(Request $request) | |
{ | |
$request->get('name'); | |
$request->get('from'); | |
$request->get('msg'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment