artisan cache commands in laravel
Cache::put('key', 'value', $seconds);
Cache::rememberForever('users', function () {
return DB::table('users')->get();
});
Cache::get('key');
Cache::has('key');
Cache::pull('key');//Updated Dec 2020
//laravel artisan clear cache
php artisan view:clear
php artisan cache:clear
php artisan route:clear
php artisan config:clear
Also in PHP:
- check how much letter php
- 15500usd to php
- encode by using base64 php
- Could not open input file: composer.phar
- create database backup programmatically php
- Failed at the @ dev script 'node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
- convert php timestamp to date
- Symfony\Component\Debug\Exception\FatalThrowableError : Call to a member function nullable() on null
- check type of result php
- error reporting phpp
- date ('n')
- create a directory using php
- check if string contains specific string php
- array filter remove duplicates multidimensional php
- check if string has substring php
- create project in laravel
- crrate model in laravel
- current date into time
- Formate The Date inj php
- current date time php
- dtae php
- ::create laravel
- base encode64 php
- To find out where your php.ini is located