slavawins/mrp-profile
最新稳定版本:0.2.7
Composer 安装命令:
composer require slavawins/mrp-profile
包简介
Extend mpr for profile page generation
README 文档
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
统计信息
- 总下载量: 979
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-29
