Salamahafifi Y. has a diverse work experience. In 2018, they served as Director, Senior Project Manager, Project Manager, and Executive Assistant at Protenga, a biotechnology company developing data-based insect-tech farming systems. They also worked as a Journalist at The Iskandarian (True Soul Media PLT), covering highlights of the region, and wrote a book titled A Nobody's Observations, published by Legasi Oakheart/Kuras Buku in April 2017. In 2018, they worked as a Community Coach/Trainer at Same Skies, training Rohingya women refugees on livelihood skills. They also served as a Transformative Coach at Insight Waves PLT, showing others the direction to realise the innate potential of themselves. In 2014, they worked as a Mentor at International Language Development Center, making learning English fun for students in Indonesia. Finally, in 2015, they served as Assistant Manager at Serba Bakti Global.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class UserController extends Controller
{
public function index()
{
$users = User::all();
return view('users.index', compact('users'));
}
public function create()
{
return view('users.create');
}
public function store(Request $request)
{
$data = $request->all();
$data['password'] = bcrypt($data['password']);
$user = new User();
$user->fill($data);
$saved = $user->save();
if ($saved) {
return redirect()->route('users.index');
}
}
public function show(User $user)
{
return view('users.show', compact('user'));
}
public function edit(User $user)
{
return view('users.edit', compact('user'));
}
public function update(Request $request, User $user)
{
$data = $request->all();
$data['password'] = bcrypt($data['password']);
$user->fill($data);
$updated = $user->update();
if ($updated) {
return redirect()->route('users.show', $user);
}
}
public function destroy(User $user)
{
$deleted = $user->delete();
if ($deleted) {
return redirect()->route('users.index');
}
}
}
Sign up to view 0 direct reports
Get started