src/Chronos/Content/app/Console/Kernel.php
protected function schedule(Schedule $schedule)
    {
        parent::schedule($schedule);

        // Activate scheduled posts
        $schedule->call(function() {
            $content = Content::where('status_scheduled', '<=', Carbon::now())->get();

            foreach ($content as $item) {
                $item->status = 1;
                $item->status_scheduled = null;
                $item->save();
            }
        })->everyMinute();
    }
protected function schedule(Schedule $schedule)
    {
        parent::schedule($schedule);

        // Activate scheduled posts
        $schedule->call(function() {
            $content = Content::where('status_scheduled', '<=', Carbon::now())->get();

            foreach ($content as $item) {
                $item->status = 1;
                $item->status_scheduled = null;
                $item->save();
            }
        })->everyMinute();
    }
protected function schedule ( Schedule $ schedule ) { parent :: schedule ( $ schedule ) ; // Activate scheduled posts $ schedule -> call ( function ( ) { $ content = Content :: where ( 'status_scheduled' , '<=' , Carbon :: now ( ) ) -> get ( ) ; foreach ( $ content as $ item ) { $ item -> status = 1 ; $ item -> status_scheduled = null ; $ item -> save ( ) ; } } ) -> everyMinute ( ) ; }
Define the package's command schedule.

@param  \Illuminate\Console\Scheduling\Schedule  $schedule
@return void
Define the package s command schedule .