Exemplo n.º 1
0
 public function bikinUsername(simultanRequest $request)
 {
     $peserta = new Username();
     $peserta->username = Input::get('username');
     $peserta->password = Input::get('password');
     $peserta->pass = Input::get('pass');
     $peserta->save();
     return Redierct::to('/bikin');
 }
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     $id = $this->route('id');
     return Username::where('id', $id)->where('user_id', Auth::user()->id)->exists();
 }