The Ray blog

Shining a light on internals and updates.

Use Ray to find queries that are slowing you down in your Laravel project

Database queries are often one of the main bottlenecks when it comes down to your app’s speed. Not only is it important to give your users a snappy experience of your app, slow queries can cause major problems when your app is experiencing high load. Luckily Ray makes it super easy to find out what queries you should optimize.

Tim

Ray is the best home for Next.js debugging output

Next.js development comes with a unique challenge when it comes to debug logging. With different rendering options and environments, I've found myself switching between the node.js developer console and the browser console too many times.

Sam

Use ray()->trace() to figure out where a call came from

Easeliy find your way in codepaths by printing backtraces with with ray()->trace()

Tim

Testing mails in Laravel using Ray

One of the most valuable features of Ray is its ability to preview emails in your local environment. This feature will also help you test entire mail flows.

Freek

Inspecting the return value of a function using Ray

Using the pass function, you can easily debug return value.

Freek

Easily inspect the contents of a Laravel collection

We automatically register a ray() collection macro that allows you to look inside the collection at any point in a chain.

Freek

Automatically clear Ray when running tests via PHPUnit or Pest

Learn how to automatically clear Ray's screen when running a test.

Freek

Understand and fix bugs faster

Ray is a desktop application that serves as the dedicated home for debugging output. Send, format and filter debug information from both local projects and remote servers.