/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { // Get data from database $user = $this->users->findOrFail($id); // Change permissions data to array $user->permissions = json_decode($user->permissions, true); // Read ACL settings config for any permission access $acl = config('setting.acl'); // Set data to return $data = ['user' => $user, 'acl' => $acl]; // Return data and view return $this->view('admin.sentinel.users.show')->data($data)->title('View User - Laravel Tasks'); }