Made with ❤️ by Iqbal Hasan
Integrate Cache Driver into your project easily with laravel-sqlite-cache package.
After creating your new Laravel application you can include the Sqlite Cache Driver Package with the following command:
composer require iqbalhasandev/sqlite-cache
Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your config/app.php
file.
Add a new line to the providers
array:
Iqbal\SqliteCache\SqliteCacheProvider::class
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install
//Then Run
// * To Create Cache Table
php artisan sqlite-cache:table
CACHE_DRIVER=sqlite
Look at one of the following topics to learn more about laravel-bulksmsbd
Below is an example of Cache Data
//Route web.php
use Illuminate\Support\Facades\Cache;
Route::get('/laravel-sqlite-cache', function () {
Cache::put('testing', 'laravel sqlite cache is Awesome');
return Cache::get('testing');
});
To know more about the use of laravel cache, visit laravel Official Webpage
You can change Cache Database Name to change name follow these step:
CACHE_DATABASE
to .env file.// optional Defalt Cache Database Name 'cache.sqlite'
CACHE_DATABASE={databasename} //E.g. 'cache.sqlite'
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install
//Then Run
// * To Create Cache Table
php artisan sqlite-cache:table
Hey dude! Don’t forget to mail me if you have any problem with the package.
This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the MIT license
If you want to contribute, you can
Thank you for using this package😘 If you like it, don’t forget to give a star⭐⭐⭐⭐⭐