app/Http/Requests/StoreStationsRequest.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 [
            'station_name' => 'required|unique:stations,station_name',
            'station_number' => 'required|integer',
            'station_document' => 'max:20480',
            'station_image' => 'max:20480',
        ];
    }
public function rules ( ) { return [ 'station_name' => 'required|unique:stations,station_name' , 'station_number' => 'required|integer' , 'station_document' => 'max:20480' , 'station_image' => 'max:20480' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .