/** * Display a listing of the resource. * * @return Response */ public function index() { $users = User::all(); $title = 'Listado de usuarios'; $lineApp = array('inicio', 'usuarios'); $menu = self::MENU; $sectionTitle = self::SECTION_TITLE; $lineTime = $this->timeLine; return view('admin.user.index', compact("users", "title", "lineApp", "menu", "sectionTitle", "lineTime")); }
/** * Create a new user instance after a valid registration. * * @param array $data * @return User */ public function create(array $data) { return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]); }