Essential session storage is required to sign in. Optional analytics remain off unless you allow them.
Build a small Laravel app (a blog, a task list, a link shelf). Requirements: define at least TWO Eloquent models with a relationship (hasMany / belongsTo) and declare $fillable for mass assignment; write MIGRATIONS and run them; use Route::resource (or explicit routes) with a controller for the RESTful actions; render BLADE views with a layout (@extends/@section/@yield) and a @foreach loop, escaping output with {{ }}; build a create/edit form with @csrf and VALIDATE input with $request->validate([...]), showing the $errors bag. Explain why {{ }} (not {!! !!}) is the safe default and why $fillable is required.
Two+ Eloquent models with a relationship + $fillable; migrations authored and run; data read/written through Eloquent.
Resource routes + controller actions; Blade views with a layout + @foreach and {{ }} escaping; a working create/edit form.
$request->validate (or a Form Request) with error display; @csrf present in POST forms; explains the {{ }} vs {!! !!} safety choice.
Use this README structure to make the work reviewable.
DevPath fetches a read-only, size-capped snapshot. Submitted code is never executed.
# A CRUD app with Eloquent, Blade & validation
## Goal
Build a small Laravel app (a blog, a task list, a link shelf). Requirements: define at least TWO Eloquent models with a relationship (hasMany / belongsTo) and declare $fillable for mass assignment; write MIGRATIONS and run them; use Route::resource (or explicit routes) with a controller for the RESTful actions; render BLADE views with a layout (@extends/@section/@yield) and a @foreach loop, escaping output with {{ }}; build a create/edit form with @csrf and VALIDATE input with $request->validate([...]), showing the $errors bag. Explain why {{ }} (not {!! !!}) is the safe default and why $fillable is required.
## Acceptance criteria
- [ ] Models & migrations: Two+ Eloquent models with a relationship + $fillable; migrations authored and run; data read/written through Eloquent.
- [ ] Routing, controllers & Blade: Resource routes + controller actions; Blade views with a layout + @foreach and {{ }} escaping; a working create/edit form.
- [ ] Validation & CSRF: $request->validate (or a Form Request) with error display; @csrf present in POST forms; explains the {{ }} vs {!! !!} safety choice.
## Verification
- [ ] Document installation and run commands.
- [ ] Record automated checks and their exact commands.
- [ ] Add representative output, screenshots, or a short demo where useful.
- [ ] Confirm failure paths and known constraints.
## Decision log
### Decision title
- Context:
- Choice:
- Alternatives considered:
- Tradeoffs:
## Evidence
- Link each rubric criterion to the file, test, or artifact that demonstrates it.
## Known limitations
- List what is intentionally out of scope and what should be improved next.