Skip to content

Conversation

comfortprince
Copy link

No description provided.

This update introduces a Category management feature and related navigation improvements. A CategoryController has been created with a fully implemented index method for listing categories, and resource routing has been added. Additionally, a link to the Categories page was added to the navigation component. The category.index view now includes structured navigation tabs, a header, a content section, and a modal form for creating new categories.
Implements the store method in CategoryController to validate and persist category records. Added and styled a category table on the category.index template. Introduces session-based success and error messages for user feedback during category registration.
Created the TagController. Implemented the index method. Created the Tag model, the associated view and index route.
Added tag navigation links to the navigation component. Styled the tag.index page for listing and managing tags.
Implemented the validation logic for the store method in the tag controller.
Implemented the store method of the TagController. Implemented a StoreTagRequest to validate a tag store request. Implemented tag success notifications using session
Implemented the form and modal used for managing tags.
Implemented the validation logic for tag update in the UpdateTag Form Request. Implemented the tag store method.
Implemented the delete method of the tag controller. Created and styled the form modal for deleting tags.
Created article migration, model and controller. Created an article route and controller and implemented the controller's index method. Added an article navigation link. Created and styled article.index template
Created `article.create` route and styled the `article.create` view
Queried and passed `tags` and `categories` to the `article.create` view
Added `article.store` route for handling article submissions
Implemented `StoreArticleRequest` to validate form inputs for new articles
Added enctype to the form. Added image validation to the image field.
- Extracted and validated data for storing articles
- Partially completed data storage for new articles
- Added `hasMany` relationship in Category model and `belongsTo` relationship in Article model
- Added `category_id` foreign key to `articles` table

(Note: Complete store method implementation is pending)
- Created `article_tag` pivot table for storing article-tag associations
- Added `belongsToMany` relationships to both Tag and Article models for many-to-many relationship
- Preparing store method to handle tag association (not yet fully implemented)
…mage library

- Installed Spatie Image library for handling image uploads
- Configured `Article` model to integrate with Spatie Image library
- Finalized store method to save associated image, tags, and category for new articles
…h middleware

- Grouped `articles`, `tags`, and `categories` routes under a common route prefix
- Added `auth` middleware to secure the route group for authenticated access only
- Applied name prefix to prevent naming conflicts with guest views and controllers
…nclusion

- Introduced `navigation` slot in `layouts/app.blade.php` to allow custom navigation components
- Updated `dashboard.blade.php` to use the new navigation slot for flexible reusability
- Enables templates to specify different navigation components as needed
- Integrated Roboto font for section headers to enhance styling
- Updated app.blade.php and app.css to apply new styling for a cohesive look
…ticle view

- Removed default welcome route and replaced it with `landing-page` view as the new home route
- Added static `about` route for displaying the about view
- Introduced `articles/{id}` route for displaying individual articles dynamically
- Created a new landing page and applied initial styling for a welcoming user experience
- Developed `guest-navigation` template for use in the landing and article pages
- Included authenticated navigation template in `article`, `category`, and `tag` index views for consistency across admin views
- Removed default `dashboard` view and route, redirecting all dashboard requests to `/admin/articles`
- Added `registerMediaCollections` method to `Article` model to define a single-file media collection for storing article images.
- Included navigation slot in `create.blade.php` for `article` to load the main authenticated navigation template.
- Replaced hard-coded articles with dynamic rendering of `$articles` data.
- Added conditional to display a message when no posts are available.
- Updated image, title, and link generation to use `article` model properties.
- Modified `destroy` method in `ArticleController` to delete associated media and article within a transaction.
- Added success flash message upon successful article deletion.
- Updated routes to include `destroy` method in `ArticleController` resource.
- Added `italic` class to Tailwind safelist for styling flexibility.
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