/**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     $administrator = Administrator::findOrFail($this->id);
     $administrator->update(['role' => $this->input["role"], 'status' => $this->input["status"]]);
     $user = User::findOrFail($administrator->user_id);
     $user->update(['name' => $this->input["name"], 'email' => $this->input["email"]]);
     \Session::flash('success', 'Administrator has been updated.');
     event(new AdministratorWasUpdated($administrator));
 }
 public function edit($id)
 {
     $this->authorize('edit', Administrator::class);
     $administrator = Administrator::findOrFail($id);
     return view('larapress::administrators.edit')->with('administrator', $administrator);
 }