Skip to content

moonlitveil/CRUD-Laravel10

Repository files navigation

What To Do...

1. Create a project using composer create-project laravel/laravel example-app
2. Run the project using php artisan serve
3. Open XAMPP and run "Apache" and "MySQL"
4. Open project using IDE
5. Make a database in "db_testing"
6. Connect db_testing in .env file
7. Copy and past in "welcome.blade.php" file
8. Edit "welcome.blade.php" according to you
9. Create model using php artisan make:model Todo -mc where "-mc" means migrate and create controller
10. Add "$table->string('title');" in "create_todos_table.php"
11. Add index function in TodoController.php
12. Add index function route in "web.php"
13. Add store function in TodoController.php
14. Add store function route in "web.php"

If you want to submit some title you will get "404 - Error"

15. In "welcome.blade.php" you need to change 'action' from form, add method and '@csrf'
16. Add functionality for storing data in the database

If you get some error then migrate the project

17. Add functionality for showing submitted data
18. Add Functionality so that the latest data always shows in the top
19. Add edit button functionality

About

(Create, Read, Update, Delete) in Laravel 10

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published