classes/Controllers/Admins.php
public function enable($id)
    {
        if (!app('decoy.user')->can('grant', 'admins')) {
            throw new AccessDeniedHttpException;
        }

        if (!($admin = Admin::find($id))) {
            return App::abort(404);
        }

        $admin->active = 1;
        $admin->save();

        return Redirect::back();
    }
public function enable($id)
    {
        if (!app('decoy.user')->can('grant', 'admins')) {
            throw new AccessDeniedHttpException;
        }

        if (!($admin = Admin::find($id))) {
            return App::abort(404);
        }

        $admin->active = 1;
        $admin->save();

        return Redirect::back();
    }
public function enable ( $ id ) { if ( ! app ( 'decoy.user' ) -> can ( 'grant' , 'admins' ) ) { throw new AccessDeniedHttpException ; } if ( ! ( $ admin = Admin :: find ( $ id ) ) ) { return App :: abort ( 404 ) ; } $ admin -> active = 1 ; $ admin -> save ( ) ; return Redirect :: back ( ) ; }
Enable the admin

@return Illuminate\Http\RedirectResponse
Enable the admin