How to Execute Query Update Using DB Class where the data retrieved from Blade View Template Form using Input Class in Laravel

This is another article depicting on how to do the thing mentioned in the title of this article. It is about how to execute query update using DB class where the data which is being used for the update process is retrieved from Blade View Template Form. The Input Class is used to retrieved every data from the every field in the controller file. This article is actually related with the article titled ‘How to Execute Query Update Using DB Class where the data retrieved from Blade View Template Form using Input Class in Laravel’ in this link.

The scenario is still the same, it is about updating the Technology Category edit form where it is related with the following files :

2. Another file is the controller file named TechnologyCategoryController defined the above edit form for further editing. It is definitely going to be filled with the value retrieved from the database. It is shown in the method named ‘edit’ as shown below :

So, the variable named ‘data’ will be filled with a variable named ‘$selected_technology’. The variable named data itself will be passed to the edit.blade.php located in the folder named ‘/resources/views/technology-category’ in the root folder of Laravel-web based installation.

3. After the editing process, it will be submitted to the URL of ‘/technology-category/update’ and it will be routed as shown in a file named ‘routes/web.php’ :