filmov
tv
Basic CRUD Operation for Beginners Using Laravel 9 | PHP
Показать описание
This is a very basic tutorial for beginners. In this tutorial, I didn't use the CRUD operation which Laravel provides. I mainly use basic CRUD operations for understanding how to insert data, how to get data from the database and show them as a table, and how to update and delete data in a basic way. In this tutorial, you also get how to pass data via URL. And also get how to create dynamic URLs.
Basic CRUD Operation Using Laravel 9:
Step 1: Create Laravel Project using ( 'composer create laravel/laravel project_name' ) this command.
Step 2: Open your project on VSCode or your preferable code editor.
Step 3: Run your project using ('php artisan serve') this command.
Step 4: Create an HTML form on laravel blade template.
Step 5: Create a Controller using ('php artisan make:Controller ControllerName') this command to handle this form.
Step 6: Run Xampp.
Step 7: In localhost create a database called laravel.
Step 8: Create a table on the database.
Step 9: Create a model using ('php artisan make:Model ModelName') this command for this table.
Step 10: Using Query Builder write a query on Controller to insert data.
Step 11: Create a new View.
Step 12: Create an HTML table on this View.
Step 13: Create a Controller using ('php artisan make:Controller ControllerName') this command to show data on this table.
Step 14: Using Query Builder write a query on Controller to get data from the database.
Step 15: Add a new column called Update on the HTML table.
Step 16: Create a new View.
Step 17: Create an HTML Form on this View to Update Data.
Step 18: Create a Function on the Controller to handle this form.
Step 19: Using Query Builder write a query on Controller to Update Data.
Step 20: Add a new column called Delete on the HTML table.
Step 21: Create a Controller using ('php artisan make:Controller ControllerName') this command to Delete Data.
Step 22: Create a new View to Data Delete Confirmation.
Step 23: Using Query Builder write a query on Controller to Delete Data.
Basic CRUD Operation Using Laravel 9:
Step 1: Create Laravel Project using ( 'composer create laravel/laravel project_name' ) this command.
Step 2: Open your project on VSCode or your preferable code editor.
Step 3: Run your project using ('php artisan serve') this command.
Step 4: Create an HTML form on laravel blade template.
Step 5: Create a Controller using ('php artisan make:Controller ControllerName') this command to handle this form.
Step 6: Run Xampp.
Step 7: In localhost create a database called laravel.
Step 8: Create a table on the database.
Step 9: Create a model using ('php artisan make:Model ModelName') this command for this table.
Step 10: Using Query Builder write a query on Controller to insert data.
Step 11: Create a new View.
Step 12: Create an HTML table on this View.
Step 13: Create a Controller using ('php artisan make:Controller ControllerName') this command to show data on this table.
Step 14: Using Query Builder write a query on Controller to get data from the database.
Step 15: Add a new column called Update on the HTML table.
Step 16: Create a new View.
Step 17: Create an HTML Form on this View to Update Data.
Step 18: Create a Function on the Controller to handle this form.
Step 19: Using Query Builder write a query on Controller to Update Data.
Step 20: Add a new column called Delete on the HTML table.
Step 21: Create a Controller using ('php artisan make:Controller ControllerName') this command to Delete Data.
Step 22: Create a new View to Data Delete Confirmation.
Step 23: Using Query Builder write a query on Controller to Delete Data.
Комментарии