app/Http/Requests/Bus/UpdateBusRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'bus_no' => 'required',
            'bus_name' => 'required|string',
            'bus_plate' => 'required',
            'bus_seat' => 'required',
            'bus_class_id' => 'required|exists:bus_classes,id',
        ];
    }
public function rules ( ) { return [ 'bus_no' => 'required' , 'bus_name' => 'required|string' , 'bus_plate' => 'required' , 'bus_seat' => 'required' , 'bus_class_id' => 'required|exists:bus_classes,id' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .