app/Console/Commands/ResetPostsRatesPerDay.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        DB::table('main_accounts')->update(['is_done_posting'=>0, 'post_count_per_day'=>0, 'is_done_moment'=>0, 'moment_count_per_day'=>0]);
        DB::table('dummy_accounts')->update(['is_done_posting'=>0, 'post_count_per_day'=>0, 'is_done_moment'=>0, 'moment_count_per_day'=>0, 'rate_count_per_day'=>0, 'is_done_rating'=>0, 'sent_gem_status'=>0]);
    }
public function handle ( ) { DB :: table ( 'main_accounts' ) -> update ( [ 'is_done_posting' => 0 , 'post_count_per_day' => 0 , 'is_done_moment' => 0 , 'moment_count_per_day' => 0 ] ) ; DB :: table ( 'dummy_accounts' ) -> update ( [ 'is_done_posting' => 0 , 'post_count_per_day' => 0 , 'is_done_moment' => 0 , 'moment_count_per_day' => 0 , 'rate_count_per_day' => 0 , 'is_done_rating' => 0 , 'sent_gem_status' => 0 ] ) ; }
Execute the console command.
Execute the console command .