Download the PHP package noopstudios/filament-edit-profile without Composer

On this page you can find all versions of the php package noopstudios/filament-edit-profile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-edit-profile

Filament package to edit profile

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

The Filament library is a user-friendly tool that simplifies profile editing, offering an intuitive interface and robust features to easily customize and manage user information.

![Screenshot of Application Feature](https://raw.githubusercontent.com/noopstudios/filament-edit-profile/main/art/joaopaulolndev-filament-edit-profile.jpg)

Enhancements Added in This Fork

This package is a fork of joaopaulolndev/filament-edit-profile by João Paulo Leite Nascimento. We extend our gratitude to the original author for creating such a robust profile management solution for Filament.

Email Management Options

We've added enhanced control over email address management:

  1. Toggle Email Editing: Ability to enable or disable email editing functionality
  2. Email Change Verification: Optional email verification process when changing email addresses

On email confirmation there is a redirect after the confirmation, that url can be overriden with "'redirectUrl' => '/admin/edit-profile'," on the cofings file after it is published.

By default, the following configuration is used:

Implementation

Use these methods in your panel provider to customize email behavior:

When email verification is enabled, users receive a verification link to confirm their email change before it takes effect, enhancing security for your application.

Additional Improvements

Features & Screenshots

Installation

You can install the package via composer:

You can publish and run the migrations with:

Optionally, you can publish the views using

Optionally, you can publish the translations using

You can publish and run all the migrations with:

You can publish the config file with:

Usage

Add in AdminPanelProvider.php

if you want to show for specific parameters to sort, icon, title, navigation group, navigation label and can access, you can use the following example:

Optionally, you can add a user menu item to the user menu in the navigation bar:

If needed you can define the disk and visibility of the avatar image. In the config file add the following:

config/filament-edit-profile.php

Profile Avatar

Screenshot of avatar Feature Show the user avatar form using shouldShowAvatarForm(). This package now uses Spatie Media Library for avatar management, providing more robust image handling.

To show the avatar form, you need the following steps:

  1. Make sure Spatie Media Library is installed and set up in your project.

  2. Add the HasMedia trait and interface to your User model:

  3. Enable the avatar form in your plugin configuration:

  4. Don't forget to run the command php artisan storage:link

Sanctum Personal Access tokens

Show the Sanctum token management component:

Please review Laravel Sanctum Docs

You may install Laravel Sanctum via the install:api Artisan command:

Sanctum allows you to issue API tokens / personal access tokens that may be used to authenticate API requests to your application. When making requests using API tokens, the token should be included in the Authorization header as a Bearer token.

Screenshot of Application Feature

If you want to control access, you can use condition, passing Closure or Boolean

Sanctum allows you to assign "abilities" to tokens. by default we have ['create', 'view', 'update', 'delete'] use permissions to customize

Browser Sessions

Screenshot of Application Feature

To utilize browser session, ensure that your session configuration's driver (or SESSION_DRIVER environment variable) is set to database.

If you want to control access or disable browser sessions, you can pass a Closure or Boolean

Custom Fields

Screenshot of Application Feature Optionally, you can add custom fields to the form. To create custom fields you need to follow the steps below:

  1. Publish the migration file to add the custom fields to the users table:

  2. Add in your User model the custom field in the fillable array:

  3. Add in your User model the custom field in the casts array:

  4. Publish the config file using this command:

  5. Edit the config file config/filament-edit-profile.php to add the custom fields to the form as example below:

Custom Components

If you need more control over your profile edit fields, you can create a custom component. To make this process easier, just use the artisan command.

[!NOTE] If you are not confident in using custom components, please review Filament Docs

This will generate a new app/Livewire/CustomProfileComponent.php component and a new resources/views/livewire/custom-profile-component.blade.php view which you can customize.

Now in your Panel Provider, register the new component.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-edit-profile with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0
jenssegers/agent Version ^2.6
spatie/laravel-package-tools Version ^1.15.0
spatie/laravel-medialibrary Version ^11.12
filament/spatie-laravel-media-library-plugin Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package noopstudios/filament-edit-profile contains the following files

Loading the files please wait ....