slavawins/mrp-profile

0.2.4 2024-02-29 16:16 UTC

This package is auto-updated.

Last update: 2024-09-29 17:27:13 UTC


README

MrpProfile

简单的包

使用composer安装

composer require slavawins/mrp-profile

发布js文件、视图和迁移文件,调用命令

php artisan vendor:publish --provider="MrpProfile\Providers\MrpProfileServiceProvider"

在routes/web.php路由器中添加

   Route::get('/profile', [\App\Http\Controllers\MrpProfile\UserMrpProfile::class, 'index'])->name('profile');
   Route::post('/profile/update_profile', [\App\Http\Controllers\MrpProfile\UserMrpProfile::class, 'update_profile'])->name('profile.update_profile');
   Route::post('/profile/profile_notify_if', [\App\Http\Controllers\MrpProfile\UserMrpProfile::class, 'profile_notify_if'])->name('profile.profile_notify_if');
   Route::post('/profile/profile_notify_type', [\App\Http\Controllers\MrpProfile\UserMrpProfile::class, 'profile_notify_type'])->name('profile.profile_notify_type');
   Route::post('/profile/industry', [\App\Http\Controllers\MrpProfile\UserMrpProfile::class, 'profile_industry'])->name('profile.industry');

在用户模型中添加。在PropertiesSetting中。这是一系列字段集合。为了有更多的旋转选项。

       MrpProfileLibary::ExtendUser($config);
       MrpProfileLibary::ExtendUserProjectNotify($config);

更新用户字段

php artisan mrp:migration User
php artisan migrate

通过用户地址访问,查看如何生成标签页

/profile