I want to send some cache to the database. But when I run the cache function there isn't a row in the database
Cache::forever('key', 'data');
If I had a dd to it, it returns null.
Things I did
Making a migration file
Schema::create('cache', function (Blueprint $table) { $table->string('key')->unique(); $table->mediumText('value'); $table->integer('expiration');- Including the
use Cache;Class - Changed
'default' => env('CACHE_DRIVER', 'database'),inconfig/cache.php - Also in .env file
CACHE_DRIVER=database
- Including the
Did I miss something :) (Thank you)
NULL