1. Go to this page and download the library: Download uspdev/forms library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uspdev / forms example snippets
[
'key' => 'uspdev-forms',
],
use Uspdev\Forms\Facades\Forms;
$html = Forms::render('parecer_final', [
'action' => route('pareceres.store'),
]);
use Illuminate\Http\Request;
use Illuminate\Validation\ValidationException;
use Uspdev\Forms\Facades\Forms;
public function store(Request $request)
{
try {
$submission = Forms::submit($request);
} catch (ValidationException $e) {
return back()->withErrors($e->validator)->withInput();
}
return redirect()->back()->with('alert-success', 'Formulário enviado com sucesso.');
}