Subash Chandran posted: "//go to App\Console\Kernel //for see all run the " php artisan schedule:list " //for run that run the " php artisan schedule:work " <?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundat" //go to App\Console\Kernel //for see all run the " php artisan schedule:list " //for run that run the " php artisan schedule:work " <?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\DB; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ // ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $schedule->call(function () { DB::table('recent_users')->delete(); })->daily(); } } Read more of this post |
|
|
|
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.