CRUD Operation in Laravel
Jan 25, 2023
Hi friends, in this video you will learn the CRUD operation in Laravel in a step-by-step process.
The requirements for the CRUD operation in Laravel are as follows-
1. We need a table in the database.
2. Route Configuration in web.php file.
3. A controller containing all the required functions.
4. A model containing all the fields of the table in the database.
We need a folder containing the following files in the resources/views/employee folder of the public HTML folder. I have a folder name employee.
1. add.blade.php
2. edit.blade.php
3. view.blade.php
All the URLs are processed through the web.php file inside the routes folder.
To set up the database in Laravel, go to the .env file in your Laravel project as shown below.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your database name
DB_USERNAME=root
DB_PASSWORD=
Website: https://pbphpsolutions.com/
Also read, CRUD Operation in Laravel 5.8
https://pbphpsolutions.com/crud-operation-in-laravel-5-8-step-by-step-for-beginners.html
Razorpay Payment Gateway Integration in PHP
https://pbphpsolutions.com/razorpay-payment-gateway-integration-in-php.html
GROUP_CONCAT function in MySQL
https://youtu.be/p2mvG-D4eMY
CRUD operation in PHP: https://youtu.be/D6Fmlu7uM0w
Insert multiple checkbox values in the database in PHP
https://youtu.be/AFa4Lc9KxS0
Upload image in PHP and display
https://youtu.be/AtYu9NcsQxI
Login and logout in PHP using the session
https://youtu.be/BNjWLfEHGqY
Dynamic Dependent Dropdown using Ajax in PHP
https://youtu.be/u7Mplwe_-BY
Ajax Live Data Search with jQuery PHP MySQL
https://youtu.be/J3m_7ARwzow
Insert multiple rows into database using foreign key
https://youtu.be/IBbvyBRNn6E
Also read,
GROUP_CONCAT() example in MySQL with Join
https://pbphpsolutions.com/group_concat-example-in-mysql.html
Insert Multiple Rows Using the Same id in PHP
https://pbphpsolutions.com/insert-multiple-rows-using-same-single-id-in-php.html
How to get value from ajax response in PHP
https://pbphpsolutions.com/how-to-insert-ajax-result-in-text-field_27.html
Append Data to Dropdown list Using Jquery Ajax PHP
https://pbphpsolutions.com/append-data-to-dropdown-list.html
PHP MySQL ajax search autocomplete example
https://pbphpsolutions.com/php-mysql-ajax-search-autocomplete.html
Login and Logout Using Session in PHP and MySQLi
https://pbphpsolutions.com/login-and-logout-using-session-in-php.html
How to insert HTML form data into MySQL database using PHP
https://pbphpsolutions.com/how-to-insert-html-form-data-into-mysql.html
How to insert multiple checkbox values in a database in PHP
https://pbphpsolutions.com/how-to-insert-multiple-checkbox-value.html
Upload Image in PHP MySQL Database and display
https://pbphpsolutions.com/how-to-upload-image-in-php-and-store-in.html
Insert Multiple Rows into MySQL with PHP Using Foreach Arrays
https://pbphpsolutions.com/insert-multiple-rows-into-mysql-with.html
Login and Logout Using Session in PHP and MySQLi
https://pbphpsolutions.com/login-and-logout-using-session-in-php.html
Introduction to PHP syntax Variables Data types and strings
https://pbphpsolutions.com/php-syntax-and-variables-data-types.html
Basic Overview of PHP and Its Uses
https://pbphpsolutions.com/basic-overview-of-php-how-php-works.html
Social Media Links:
Facebook: https://www.facebook.com/PBPhpsolutions-109907204003392/
Medium: https://medium.com/@biplabsinha345
Twitter: https://twitter.com/pbphpsolutions
#php #phptutorials #mysql #phpdevelopment #phpmysql
Show More Show Less 