php dev tools integrated to your browser

Clockwork screenshot Clockwork screenshot Clockwork screenshot


All data logged using the standard Laravel log methods will also appear in the Clockwork log tab.

You can also use the Clockwork log directly, with the benefit of rich logging capabilities. You can log any variable, from a simple string to an object.

Logging data to Clockwork can be done using the helper function, even multiple values at once:

clock(User::first(), auth()->user(), $username)

If you want to specify a log level, you can use the long-form call:

clock()->info("User {$username} logged in!")

The clock() helper function returns it's first argument, so you can easily add inline debugging statements to your code:


You can use the trace option to make Clockwork explicitly collect stack trace for a particular message.

clock()->info("Trace this message!", [ 'trace' => true ])