datatable.directory codebase
https://datatable.directory/
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.
24 lines
433 B
24 lines
433 B
<?php
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
class UserController extends Controller
|
|
{
|
|
/**
|
|
* Show the application dashboard.
|
|
*
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function view(User $user)
|
|
{
|
|
$tables = $user->tables()
|
|
->with('revision:id,row_count')
|
|
->paginate(3);
|
|
|
|
return view('user.view')->with(compact('tables', 'user'));
|
|
}
|
|
}
|
|
|