Home>
At the initial display in laravel, we are thinking of a series of flow to display the value acquired from DB, change the value and save.
The entered value is checked by validation, and if there is an error, it returns to the input screen, but it is done.
However, since I want to keep the entered value, I would like to display the value if it was entered using old on the controller.
I want to use old with controller instead of balde.
I'm writing this now, but it doesn't work.
function hogehoge (HogeRequest $request) {
....
....
// name is hoge_name but it doesn't work ... the name isn't different
$request->old ('hoge_name');
....
....
}
$request->session ()->all ();
[_flash] =>Array
(
[old] =>Array
(
[0] =>_old_input
[1] =>errors
)
[new] =>Array
(
)
)
...
...
...
[_old_input] =>Array
(
[hoge_name] =>12345
There is something in _old_input.
How can I get it on the controller side?
Please teach me.
-
Answer # 1
Related articles
- php - i want to get rid of shortcodes from the_excerpt ();
- i want to get the name of the laravel php zip file
- php - url parameters? i want to get the slug name from
- php - i want to get the file size of a blob file stored in the database
- php - laravel detailed screen screen creation foreach statement plural form undefined error
- i want to pass the php path
- i want to be able to describe it in [php] functionphp
- php - laravel header covers content
- php - laravel implementation of tweet list function of users who are logged in
- php - i get an error when submitting a laravel 5550 form
- php - i want to extract the laravel zip file to the specified path
- php - in laravel, unzip the zip file without adding the zip file name to the hierarchy
- php - change data in laravel intermediate table
- html - i want to get custom data for js remove
- when i run [php artisan server] in the laravel terminal, the server does not start
- linux - i want to get a directory from hdfs
- i want to get the project id with firebase
- how to write phpdoc @return in laravel
- php - [laravel] form transmission in post becomes get
- php - i want to get the number of users who are following laravel and the number of users who are being followed by using count
Related questions
- php - why is the error statement returned in the url even though i wrote it with try catch?
- php - e-mail transmission with laravel is garbled
- php : About the error when executing COM ("Excel.Application")
- [php_laravel] how to reflect session data in view file
- php - [laravel] how to read and use the class of another file in controller
- php - about the value stored in laravel db
- after upgrading the php version of the rental server from 58 to 74, composer stopped working on ssh connections
- php - i can't connect to mysql in laravel js
- php - [laravel aritsan serve] class'barryvdh \ snappy \ serviceprovider' not found is displayed
- php - i built an environment with docker and laravel, but i get a 404 file not found
Because it is a facade,
I think you can get it with.