- Add status checker + admin secure packages + upgrade enum + add sentry + upgrade to sitemap generator + bump to CRMV2 - Set customer role enum and user role enum - Update customer migration to set roles - phpcbf - faker local to fr - update lang - composer update - bump laravel ui - Redo all user crud - npm bump - Create admin command - rearrange views - redo all auth system - redo customer pro bo
33 lines
682 B
PHP
33 lines
682 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Fo\Customers;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class UpdateInfosRequest extends CreateAccountRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return Auth::guard('frontend')->check();
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
$rules = parent::rules();
|
|
unset($rules['email']);
|
|
unset($rules['password']);
|
|
unset($rules['role']);
|
|
unset($rules['ok_cgv']);
|
|
return $rules;
|
|
}
|
|
}
|