![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/app/Shop/Businesses/Requests/ |
<?php namespace App\Shop\Businesses\Requests; use App\Shop\Base\BaseFormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\Rule; class UpdateCompanyRequest extends BaseFormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'email' => ['email', Rule::unique('businesses')->ignore(Auth::user()->business->id)], 'address1' => ['required'], 'account_manager_id' => ['required','exists:account_managers,id'] ]; } }