Closed onedios closed 5 years ago
I have three tabs First tab shows user information Second tab his/her address Third tab is used to save image for that user
I moved image part into third tab because Next and Back button gave me this error, Still i am getting same error on back button.
I changed some codes in vendor folder (temporary)
in Step.php cacheProgress
if($this->slug !== 'documents') { $cacheData[$this->slug] = $this->getRequestData($request);
}
Reason i am getting this error In SessionStore.php Set method
$this->session->put($this->wizardKey, $data);
Rest of my codes are simple no validation no saving right now.
Hi! Thank you for the information. Now, I found a solution to set cache
in config/wizard.php
to false, but it doesn't work now, please wait for me to fix this.
But I can't solve the "Serialization of 'Illuminate\Http\UploadedFile' is not allowed" problem.
Fixed from #10
The difference between cache open and close is:
Model::updateOrCreate()
(https://laravel.com/docs/6.x/eloquent#other-creation-methods).About the skip step: The current practice, as long as there is no input data and the rules are not set to require can skip step, and show instructions below the form field. I am planning to find free time to implement the real skip feature.
Hi thanks for the quick response and update, another scenario when we go back we should skip validation also because it make no sense to validate first (my address tab has 10 fields) and go back so there must be some flag set to skip validation when back trigger fires!
Currently i have to use this code to skip validation in each Step Processes
if( $request->exists('_trigger') ) { return [];
}
Fixed from #14
There are still questions to welcome to tell me. If no problems, I will release a new version.
I guess final question !
The way we add validation rules can we add error message method also? I haven't checked it yet. If yes then i think we good to go!
Added from #15
@onedios Friendly reminder: One issue will only discuss one thing. if there are other things that need to open a new issue. This will not be confusing!
If there are no problems, I prepared to release a new version! Thank you for all your questions!
I have three tabs, last tab is used to store documents(images) Next button is working fine but Prev button gives me this error.
also Is it possible we skip some steps ?