Download the PHP package infinitypaul/laravel-multistep-forms without Composer
On this page you can find all versions of the php package infinitypaul/laravel-multistep-forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infinitypaul/laravel-multistep-forms
More information about infinitypaul/laravel-multistep-forms
Files in infinitypaul/laravel-multistep-forms
Package laravel-multistep-forms
Short Description Multistep form functionality for Laravel, with the ability to persist data for each step, navigate back and forward, prevent accessing future steps and more.
License MIT
Homepage https://github.com/infinitypaul/laravel-multistep-forms
Informations about the package laravel-multistep-forms
Laravel Multi-step Form
Hi Fellas! So you know how you would like to create a dynamic registration form but then you can't because you feel this is impossible with PHP.
Well, I have good news for ya, this is so POSSIBLE with this package. Yeah that's right, I mean it. Let's get down on the "how":
So we will be working with a 3 step form:
Installation
You can install the package via composer:
Usage
After installing the package, I will be creating 3 blades for the different steps of the form:
Step 1: Create the blades for the form.
1.blade.php
2.blade.php
3.blade.php
Step 2: Create the controller for the each form.
After creating the blade views for each of the forms, p.s: I created them in a folder "register". We'll be heading to the controller, so in app\Http\Controllers\Auth, we would be creating a folder "Register" i.e our path will be "app\Http\Controllers\Auth\Register". In the Register folder, we would be creating 3 controllers for the three steps:
RegisterControllerStep1.php
RegisterControllerStep2.php
RegisterControllerStep3.php
Step 3: Routing!
Let's move on to the route, in our web.php, we will include this:
We're done guys!!!
So if I head to {URL}/auth/register/1, I would see this:
When I click on next, it takes me to {URL}/auth/register/2 and this will display:
On clicking on next, we get {URL}/auth/register/3:
Its a wrap! Well done guys!!!
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Bugs & Fixtures
If you have spotted any bugs, or would like to request additional features from the library, please file an issue via the Issue Tracker on the project's Github page: https://github.com/infinitypaul/laravel-multistep-forms/issues.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.