Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.23 KB

Security Vulnerability Composer Dependencies card for Laravel Pulse

Security Vulnerability Composer Dependencies card for Laravel Pulse

This card will show you security vulnerability composer dependencies.

Installation

Require the package with Composer:

composer require hungthai1401/vulnerable

Register the recorder

Right now, the Composer dependencies audit will only be checked once per day. To run the checks you must add the Vulnerable to the pulse.php file.

return [
    // ...
    
    'recorders' => [
+        \HT\Pulse\Vulnerable\Recorders\Vulnerable::class => [],
    ]
]

You also need to be running the pulse:check command.

Add to your dashboard

To add the card to the Pulse dashboard, you must first publish the vendor view.

Then, you can modify the dashboard.blade.php file:

<x-pulse>
    ...
    
+    <livewire:vulnerable cols='4' rows='2' />
</x-pulse>

Credits