Charlotte Cho has been working in the beauty and lifestyle industry since 2008. Charlotte began their career as an International Corporate Communications Manager at Samsung Engineering. In 2012, they co-founded Soko Glam, a beauty and lifestyle destination featuring the best of Korean cosmetics. Charlotte is the author of the book, The Little Book of Skin Care: Korean Beauty Secrets for Healthy, Glowing Skin (HarperCollins) and the editor-in-chief for the Korean beauty content site, The Klog. In 2013, they co-founded The Klog, an online skincare resource. In 2018, they founded Then I Met You, a skincare line.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\User;
use App\Models\Admin;
use App\Models\Role;
use App\Models\Permission;
use App\Models\PermissionRole;
use App\Models\RoleUser;
use Auth;
use DB;
use Hash;
use Validator;
class AdminController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$admins = Admin::all();
return view('admin.index', ['admins' => $admins]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('admin.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$validator = Validator::make($request->all(), [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:admins',
'password' => 'required|min:6|confirmed',
]);
if ($validator->fails()) {
return redirect()->back()
->withErrors($validator)
->withInput();
}
$admin = new Admin;
$admin->name = $request->name;
$admin->email = $request->email;
$admin->password = Hash::make($request->password);
$admin->save();
$user = new User;
$user->name = $request->name;
Sign up to view 0 direct reports
Get started