-Click here to download composer for wondows
- "composer create-project --prefer-dist laravel/laravel blog "6.*""
"php artisan make:migration create_users_table"
Note:- This command will used to create an users table
php artisan migrate
"php artisan make:controller Write_here_your_controller_name -r"
Note:- if you dont need to create resource controller then just remove -r written in last of command.
if you create controller with Resource then it will auto make some methods inside controller which are same like CRUD(Create, Read, Update and destroy) Operation like-
1. Index() method:
This method can be used for <strong>R</strong>ead Operation i.e read the data from database table.
2.Create() method:
This method can be used for return the Form page where you will insert that value (Ex. Registreation form).
3.Store() method:
This method can be used for write the code for Insert or <strong>C</strong>reate the form data inside table.
3.edit() method:
This method can be used for return the Editing Form with data according to passing id.
4.update() method:
This method can be used for write the code for <strong>U</strong>pdate the data according to passed id.
5.destroy() method:
This method can be used for <strong>D</strong>elete the record.
* Be the first to Make Comment