Laravel

Insert and Display of Records

First I'll make a database.

  1. Make db in mysql and then change dbconnection name in .env file

  2. run command Php artisan migrate

  3. now first run a command to make table in database laravel-> PHP artisan make:migration create_customer_table

  4. then add all the fields required.

    1. Then run a command PHP artisan make:migrate

Now the table is generated, form and model could be needed to insert data into our customer table.

  1. We are creating a model.

    command PHP artisan make:model customer

  2. Creating Form,Contoller and linking M-V-C

    Controller

index will be used to view form

store will be used to store data in MySQL

view will provide display for installments and stuff.

Route File

VIEW PAGES-FORM

VIEW-TABLE[DISPLAY]

how it looks actually.

Customer page

Installment months are hard-coded