A clean and responsive Todo List application built with Laravel and Blade, styled using pure CSS.
It demonstrates core Laravel concepts like MVC architecture, form validation, CSRF protection, and basic CRUD operations.
- Add new todos
- Mark todos as completed
- Delete todos
- Blade-based UI with responsive layout
- CSRF-protected forms
- Simple, no-JavaScript setup
git clone https://github.com/your-username/laravel-todo-app.git
cd laravel-todo-appcomposer installcp .env.example .envThen configure your database in .env.
For SQLite:
DB_CONNECTION=sqlite
DB_DATABASE=./database/database.sqliteCreate the SQLite file:
touch database/database.sqlitephp artisan key:generatephp artisan migratephp artisan serveThen open http://localhost:8000 in your browser.
app/Http/Controllers/TodoController.php– Controller logicresources/views/todos/index.blade.php– UI layoutroutes/web.php– Route definitionspublic/css/style.css– Custom styling
- All forms use CSRF protection via
@csrf - Input validation is handled with Laravel’s built-in validator