Skip to content

quarterloop/laravel-dashboard-tech-stack-tile

Repository files navigation

A short description of the tile

A friendly explanation of what your tile does.

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

composer require quarterloop/laravel-tech-stack-tile

Usage

In your dashboard view you use the livewire:tech-stack-tile component.

<x-dashboard>
    <livewire:tech-stack-tile position="a1:a1" />
</x-dashboard>

Use the php artisan command to fetch Page Speed data.

php artisan dashboard:fetch-tech-stack-data

Use this snippet to schedule the command in app/Console/Commands/Kernel.php

$schedule->command(\Quarterloop\TechStackTile\Commands\FetchTechStackCommand::class)->daily();

Also add the following code snippet in app/console/kernel.php under "$commands" in a new line:

\Quarterloop\TechStackTile\Commands\FetchTechStackCommand::class,

Insert this in routes/web.php - this enables the manual-refresh-button in tile

Route::get('/refresh-tech-stack', function() {
  Artisan::call('dashboard:fetch-tech-stack-data');
  return back();
})->name('fetch-tech-stack');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email wallisch@skouz.de instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published