Vapor UI Dashboard Package

News

September 4th, 2020

laravel-vapor.png

Vapor UI is an open-source dashboard for Laravel apps running in Vapor. It provides a beautiful dashboard within your Vapor powered application that allows you to monitor your application’s logs and failed queue jobs.

Today, the @laravelphp team is proud to introduce you to our new open-source package: Vapor UI.

It provides a beautiful dashboard within your Vapor powered application that allows you to monitor your application's logs and failed queue jobs.

https://t.co/xM1a5FPMxk.

— NUNO MADURO (@enunomaduro) September 3, 2020

Application logs in Vapor are sent to CloudWatch by default, and you can now search them via the Vapor UI. You can further filter by log type, which includes HTTP, CLI, and Queue logs.

Vapor UI provides a failed job page where you can view a list of failed jobs with details about the failure. From the Vapor UI dashboard, you can retry or delete a job.

The Vapor UI dashboard is accessible via /vapor-ui, and you can lock down access using custom authorization gate logic in package’s VaporUiServiceProvider

protected function gate()
{
    Gate::define('viewVaporUI', function ($user = null) {
        return in_array(optional($user)->email, [
            // 
        ]);
    });
}

Learn More

Nuno published an article over on the Laravel blog outlining announcing this package, including screenshots and an overview of the dashboard’s functionality. The code behind this dashboard is open-sourced and available on GitHub at laravel/vapor-ui, and you can find the documentation here.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.