Danielle Soto

Associate Director Of Operations at Emissary Software

Danielle Soto has over twenty-five years of work experience. Danielle began their career in 1995 as a Senior Tax Accountant at Arthur Andersen & Co. In 2002, they took a position as an Accounting Assistant at UN Communications, Inc. and also worked as an Office Manager/Bookkeeper at Tough Turf Lawn Services, Inc. In 2006, they became an Accounting Manager at Appendant Marketing Group. From 2010 to 2014, they served as an Accounting Manager at UN Communications Group Inc. and then worked as a PT Accounts Payable Specialist at Westfield Steel Inc. from 2014 to 2016. Since 2018, they have been an Associate Director of Operations at both Juju.com and Emissary.ai.

<?php

namespace App\Http\Controllers;

use App\Models\User;

use Illuminate\Http\Request;

use Illuminate\Support\Facades\Auth;

class UserController extends Controller

{

public function __construct()

{

$this->middleware('auth');

}

public function index()

{

$users = User::all();

return view('users.index', compact('users'));

}

public function show(User $user)

{

return view('users.show', compact('user'));

}

public function edit(User $user)

{

$this->authorize('update', $user);

return view('users.edit', compact('user'));

}

public function update(Request $request, User $user)

{

$this->authorize('update', $user);

$this->validate($request, [

'name' => 'required|string|max:255',

'email' => 'required|string|email|max:255|unique:users,email,' . $user->id,

'password' => 'nullable|string|min:6|confirmed',

]);

$data = [];

$data['name'] = $request->name;

$data['email'] = $request->email;

if ($request->password) {

$data['password'] = bcrypt($request->password);

}

$user->update($data);

return redirect()->route('users.show', $user->id)->with('success', '个人资料更新成功!');

}

public function destroy(User $user)

{

$this->authorize('destroy', $user);

$user->delete();

return back()->with('success', '成功删除用户!');

}

}

Links


Timeline

  • Associate Director Of Operations

    May, 2018 - present