You can use Input::merge()
to replace single items.
Input::merge(['inputname' => 'new value']);
Or use Input::replace()
to replace the entire input array.
Input::replace(['inputname' => 'new value']);
Here’s a link to the documentation
More Related Contents:
- PHP “php://input” vs $_POST
- Laravel requires the Mcrypt PHP extension
- Laravel view not found exception
- Laravel orderBy on a relationship
- Download files in laravel using Response::download
- How to create multilingual translated routes in Laravel
- How to alias a table in Laravel Eloquent queries (or using Query Builder)?
- Access query string values from Laravel
- MVC (Laravel) where to add logic
- How Follow the Don’t Repeat Yourself Principle When Consuming My Own Laravel API?
- What is the syntax for sorting an Eloquent collection by multiple columns?
- ‘Malformed UTF-8 characters, possibly incorrectly encoded’ in Laravel
- PHP: Best way to check if input is a valid number?
- laravel TokenMismatchException in ajax request
- Laravel named route for resource controller
- How to set a class attribute to a Symfony2 form input
- Use one Laravel migrations table per database
- Laravel: Validation unique on update
- file_put_contents(meta/services.json): failed to open stream: Permission denied
- PHP Composer update “cannot allocate memory” error (using Laravel 4)
- Laravel Eloquent – Attach vs Sync
- Update without touching timestamps (Laravel)
- Change name of Laravel’s created_at and updated_at
- How can I query raw via Eloquent?
- Laravel Eager Loading – Load only specific columns
- Using namespaces in Laravel 4
- Laravel catch Eloquent “Unique” field error
- Laravel extend Form class
- How Can I Remove “public/index.php” in the Laravel Url generated? [duplicate]
- Can’t make Laravel 4 to work on localhost