Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store(OneTimePasswordReq $request)
- {
- $insert = Model::create($request->all());
- return response()->json();
- }
- public function authorize()
- {
- return true;
- }
- /**
- * Get the validation rules that apply to the request.
- *
- * @return array
- */
- public function rules()
- {
- return [
- 'mobile' => 'required',
- 'code' => 'required',
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement