Insert Data into Database Using Laravel:
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.
HTML Course website design & development course ||IT courses
• website design & development course ||IT c...
#Apnafeature