Skip to content

Implement slides and sliders - #31

Merged
bahman026 merged 3 commits into
adminfrom
implement_slides_and_sliders
Jun 20, 2026
Merged

Implement slides and sliders#31
bahman026 merged 3 commits into
adminfrom
implement_slides_and_sliders

Conversation

@bahman026

Copy link
Copy Markdown
Owner

No description provided.

bahman026 and others added 3 commits June 20, 2026 03:54
Co-authored-by: Cursor <cursoragent@cursor.com>
- Add SliderStatusEnum (DELETED/PUBLISHED/DRAFT)
- Add sliders and slides migrations (FK cascade, polymorphic image on slides)
- Add Slider and Slide models with MorphOne image and cascade delete
- Add SliderFactory and SlideFactory (withImage state)
- Add SliderSeeder (10 sliders x 5 slides each) registered in TestSeeder
- Add SliderResource and SlideResource with full CRUD pages
- Add SliderResourceTest and SlideResourceTest (cascade delete coverage)
- Update CACHE.md, IMPLEMENTATION.md, ShoFlow db doc.md, AGENTS.md

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add ->image() to all FileUpload fields (Slide, Banner, Brand, Category, Product)
- Add mutateRelationshipDataBeforeSaveUsing guard to SlideResource to delete image when path is cleared
- Add navigationSort=3 to BannerResource for consistent Content group ordering
- Update ShoFlow db doc.md slides section to document polymorphic image (no image_id column)

Co-authored-by: Cursor <cursoragent@cursor.com>
@bahman026
bahman026 merged commit 7c2be7a into admin Jun 20, 2026
1 check passed
@bahman026
bahman026 deleted the implement_slides_and_sliders branch June 20, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant