You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
|
|
|
|
class UserController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Show the application dashboard.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\View\View
|
|
|
|
*/
|
|
|
|
public function view(User $user)
|
|
|
|
{
|
|
|
|
$tables = $user->tables()
|
|
|
|
->with('revision:id,row_count')
|
|
|
|
->paginate(10);
|
|
|
|
|
|
|
|
return view('user.view')->with(compact('tables', 'user'));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Edit user profile
|
|
|
|
*
|
|
|
|
* @param User $user
|
|
|
|
* @return \Illuminate\View\View
|
|
|
|
*/
|
|
|
|
public function edit()
|
|
|
|
{
|
|
|
|
return view('user.edit')->with('user', \Auth::user());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function store()
|
|
|
|
{
|
|
|
|
echo "Not impl";
|
|
|
|
}
|
|
|
|
}
|