You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A form.php configuration file will be created in your config directory, which you can edit freely.
Integration with other PHP projects
If you are not using Laravel, then you need to initialize the form builder manually. Don't worry, it's an easy process - just follow the procedure below:
useLaraplus\Form\DataStores\PhpDataStore;
useLaraplus\Form\Presenters\Bootstrap3Presenter;
useLaraplus\Form\ConfigProviders\PhpConfigProvider;
$presenter = newBootstrap3Presenter();
$dataStore = newPhpDataStore();
$configProvider = newPhpConfigProvider([
// enter your configuration here
]);
$form = newForm($presenter, $dataStore, $configProvider);
Now you can access all of the functionality through the $form variable.