Skip to content
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

adding a new trait for user attribute #260

Merged
merged 1 commit into from
Mar 2, 2024
Merged

adding a new trait for user attribute #260

merged 1 commit into from
Mar 2, 2024

Conversation

atmonshi
Copy link
Member

@atmonshi atmonshi commented Mar 2, 2024

I added a new trait for getting the user name

so you have to add this to your user model:

use \LaraZeus\Bolt\Models\Concerns\BelongToBolt;

This will allow you to get the user name by another attribute like full_name

Copy link

what-the-diff bot commented Mar 2, 2024

PR Summary

  • Updated Documentation
    Additional guidance has been provided in installation.md and upgrade.md regarding the usage of Bolt Trait in the User Model. This makes the software easier to install and upgrade.

  • Enhanced Functionality in View Pages
    Changes have been made in both browse-entry.blade.php and show-entry.blade.php files to display the full name of the user instead of the avatar image. This improves the user's ability to make associations and references in regards to contributors.

  • Improved Response Management
    Modifications in ResponseExporter.php and ManageResponses.php files enable managing responses using the full name of the user. This results in better organization and easier reference of responses.

  • Added New Trait
    A new BelongToBolt trait has been added through the BelongToBolt.php file under the Models/Concerns directory. This trait simplifies getting the full name of a user, aiding in user identification.

@atmonshi atmonshi merged commit 32267d0 into 3.x Mar 2, 2024
5 checks passed
@atmonshi atmonshi deleted the user-attr branch March 2, 2024 01:05
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