/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $subscriber = Subscriber::findOrFail($id['id']);
     $subscriber->delete();
     Activity::log('User Unsubscribed');
     return redirect('/home')->withSuccess('Subscriber Removed.');
 }
function decodeSubscriber($subscriberHash)
{
    $hashids = new Hashids\Hashids(config('gtw.hashid.salts.subscribers'), 20, config('gtw.hashid.hash_chars'));
    $ids = null;
    try {
        $ids = $hashids->decode($subscriberHash);
    } catch (\Exception $e) {
    }
    if (count($ids) == 0) {
        return null;
    }
    return Subscriber::findOrFail($ids[0]);
}
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Subscriber::findOrFail($id)->delete();
 }