app/Http/Controllers/Admin/UserController.php
/**
     * Display a listing of the users.
     *
     * @return Response
     */
Display a listing of the users.
@return Response
Display a listing of the users . @return Response
public function index(): Response
    {
        $users = User::with('admin')->paginate(10);
        activity('admin')
            ->causedBy(auth()->user())
            ->log('viewed user index');
        return Inertia::render('Admin/User/Index', ['users' => $users]);
    }
public function index ( ) : Response { $ users = User :: with ( 'admin' ) -> paginate ( 10 ) ; activity ( 'admin' ) -> causedBy ( auth ( ) -> user ( ) ) -> log ( 'viewed user index' ) ; return Inertia :: render ( 'Admin/User/Index' , [ 'users' => $ users ] ) ; }
Display a listing of the users.
Display a listing of the users .