예제 #1
0
 /**
  * Store handler.
  *
  * @return \Laravel\Passport\Client * @throws \Illuminate\Validation\ValidationException
  */
 public function store()
 {
     $this->validation->make($this->request->all(), ['name' => 'required|max:255', 'redirect' => 'required|url'])->validate();
     return $this->clients->create($this->request->user()->getKey(), $this->request->name, $this->request->redirect)->makeVisible('secret');
 }