-
Notifications
You must be signed in to change notification settings - Fork 109
Completed The Beginner Project #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
comfortprince
wants to merge
34
commits into
LaravelDaily:main
Choose a base branch
from
comfortprince:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
…w categories are created
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.