Skip to content

Instantly share code, notes, and snippets.

@ellisio

ellisio/foo.php

Created Feb 18, 2015
Embed
What would you like to do?
<?php namespace Api\Http\Requests\V3\Action;
use Auth;
use Api\Http\Requests\Request;
/**
* Class ActionStoreRequest
*
* @package Api\Http\Requests\V3\Auth
*/
class ActionStoreRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return Auth::check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'type' => 'required|in:RIDE_SHARE,MEETUP',
'title' => 'required',
'destination' => 'required',
'stockImage' => 'required',
'attendeeCount' => 'required|numeric',
'attendeeCountLimited' => 'required',
'dateTime' => 'required|date'
];
}
} // End ActionStoreRequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.