mostafaznv / nova-laracache
LaraCache Tool for Laravel Nova
Installs: 2 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 1
Forks: 1
Open Issues: 0
Language:Vue
Requires
- php: ^8.1
- ext-json: *
- laravel/framework: ^10.4.1|^11.0
- laravel/nova: ^4.24|^5.0
- mostafaznv/laracache: ^2.3.2
- nova-kit/nova-packages-tool: ^1.9|^2.0
README
Nova LaraCache is a robust Laravel Nova package that facilitates the seamless integration of the LaraCache package with the Laravel Nova. With Nova LaraCache, users gain a powerful cache management tool within the familiar Laravel Nova interface.
This package extends the capabilities of LaraCache, offering a comprehensive set of tools to efficiently moderate and manage cache entities. Users can effortlessly monitor cache expiration dates, ensuring the freshness and accuracy of cached data. By reviewing cache entity contents, users can gain insights into the stored data and its relevance. Nova LaraCache also enables users to regenerate cache items, facilitating updates and refreshes of cached entities. Additionally, users have the flexibility to delete specific cache entries, providing control over cache management tasks.
With Nova LaraCache, users can take full advantage of cache management capabilities directly within the Laravel Nova environment. By offering an intuitive interface and seamless integration, Nova LaraCache enables users to efficiently moderate and manage cache entities, ultimately contributing to the performance and efficiency of their Laravel applications.
I am on an open-source journey 🚀, and I wish I could solely focus on my development path without worrying about my financial situation. However, as life is not perfect, I have to consider other factors.
Therefore, if you decide to use my packages, please kindly consider making a donation. Any amount, no matter how small, goes a long way and is greatly appreciated. 🍺
Requirements:
- PHP 8.1 or higher
- LaraCache 2.3.2 or higher
- Laravel 10.4.1 or higher
- Nova 4.24 or higher
Installation
Note Ensure that you have already installed and configured the LaraCache package in your Laravel application. If you haven't done so, please refer to the LaraCache documentation for instructions on installation and usage. It's important to create cache entities for each model before proceeding with Nova LaraCache.
To get started, you will need to install the following dependency:
composer require mostafaznv/nova-laracache
Then, you should publish vendor files and assets:
php artisan vendor:publish --provider="Mostafaznv\NovaLaraCache\NovaLaraCacheServiceProvider"
That's it, you're ready to go!
Usage
After the package installation is complete, register the Nova LaraCache tool within your Laravel Nova application. Open the NovaServiceProvider
class located at app/Providers/NovaServiceProvider.php
and add the following line to the tools() method:
<?php namespace App\Providers; use Laravel\Nova\NovaApplicationServiceProvider; use Mostafaznv\NovaLaraCache\NovaLaraCache; class NovaServiceProvider extends NovaApplicationServiceProvider { public function tools(): array { return [ new NovaLaraCache ]; } }
Done! just navigate to your Laravel Nova panel. You should now see the LaraCache tool integrated into the sidebar.
Remember, before using Nova LaraCache, ensure that you have followed the instructions in the LaraCache documentation to create cache entities for each model. This will ensure that you have the necessary cache setup in place for effective cache management using Nova LaraCache.
I am on an open-source journey 🚀, and I wish I could solely focus on my development path without worrying about my financial situation. However, as life is not perfect, I have to consider other factors.
Therefore, if you decide to use my packages, please kindly consider making a donation. Any amount, no matter how small, goes a long way and is greatly appreciated. 🍺
Demo
Video
nova-laracache.mp4
Screenshot
License
This software is released under The MIT License (MIT).