class UserLookupController extends Controller (View source)

Controller to look up users by name.

This is used to populate the @mentions suggestion box in the text editor. The return format is an array of objects with the following keys:

  • id: the user ID
  • name: the user's name
  • html: a rendering of the UserLabel component for the user

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Constants

LIMIT

Methods

__invoke(Post|null $post, Request $request)

No description

Details

__invoke(Post|null $post, Request $request)

No description

Parameters

Post|null $post
Request $request