User profile can be updated by clicking on profile picture
This commit is contained in:
28
app/controllers/DashUserController.php
Normal file
28
app/controllers/DashUserController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
class DashUserController extends Controller
|
||||
{
|
||||
/**
|
||||
* Shows the user view.
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showUser()
|
||||
{
|
||||
return View::make('dashboard.user')->with([
|
||||
'pageTitle' => 'User - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the statsu page user.
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function postUser()
|
||||
{
|
||||
$items = Input::all();
|
||||
|
||||
$updated = Auth::user()->update($items);
|
||||
|
||||
return Redirect::back()->with('updated', $updated);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user