baks-dev/users-profile-user
Модуль профиля пользователей для PHP 8.4+ (BaksDev): установка через Composer, установка ресурсов командой baks:assets:install, поддержка миграций Doctrine и тестов PHPUnit (group=users-profile-user).
users tables or custom profile extensions. Pre-integration schema audits are critical to avoid data loss or corruption.baks:assets:install, implying frontend dependencies (CSS/JS). Compatibility with modern asset pipelines (Vite, Laravel Mix) must be validated to avoid build toolchain conflicts.spatie/laravel-permission, laravel/ui). Risk of missing dependencies or version conflicts (e.g., Doctrine, Symfony components).users table or create a separate profiles table? How are relationships defined (e.g., User hasOne Profile)?avatar, bio)? Can they be disabled or customized via configuration?updateOwnProfile gate)? If not, how would you implement this without forking?laravel/breeze, spatie/laravel-permission)?App\Models\User extending a base class)?User model or create a Profile model—verify this early and align with your auth strategy.avatar size, bio length) using Illuminate\Validation\Rules.ProfileUpdated) for side effects like notifications (via Laravel’s Notification facade) or analytics (e.g., tracking profile completions).auth, can:update-profile). Example:
Route::middleware(['auth', 'can:update-profile'])->group(function () {
Route::patch('/profile', [ProfileController::class, 'update']);
});
baks:assets:install and customize templates by publishing and overriding views (e.g., resources/views/vendor/baks-profile-user).routes/api.php or routes/web.php). Use Laravel’s API resources for JSON responses:
php artisan make:resource ProfileResource --model=Profile
php artisan doctrine:migrations:diff to preview schema changes. Resolve conflicts manually (e.g., if the package expects a profiles table but your app uses user_profiles).Schema::table('profiles', function (Blueprint $table) {
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
});
user_metadata, third-party auth integrations like Firebase Auth).gd, fileinfo, pdo_mysql) are installed. Update composer.json to lock versions of critical dependencies (e.g., doctrine/dbal, symfony/console).spatie/laravel-permission). Use composer why-not baks-dev/users-profile-user to identify potential issues.composer require baks-dev/users-profile-user
php artisan baks:assets:install
php artisan doctrine:migrations:diff
php artisan doctrine:migrations:migrate
.env:
PROFILE_AVATAR_DISK=s3
namespace App\Models;
use BaksDev\ProfileUser\Models\Profile;
class CustomProfile extends Profile
{
protected $customField = 'value';
}
resources/views/vendor/baks-profile-user.How can I help you explore Laravel packages today?