abstract class CompanyBaseRequest extends FormRequest { ... public function rules() { return [ 'name' => ['required', 'string', 'max:255'], 'category_id' => ['required', 'exists:company_categories,id'], 'short_description' => ['required', 'string', 'max:2000'], 'video' => ['nullable', 'file', 'mimes:mp4', 'max:30000'], ]; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter