Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public function store(OneTimePasswordReq $request)
  2. {
  3.  
  4. $insert = Model::create($request->all());
  5. return response()->json();
  6. }
  7.  
  8. public function authorize()
  9. {
  10. return true;
  11. }
  12.  
  13. /**
  14. * Get the validation rules that apply to the request.
  15. *
  16. * @return array
  17. */
  18. public function rules()
  19. {
  20. return [
  21. 'mobile' => 'required',
  22. 'code' => 'required',
  23. ];
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement