app/Console/Commands/DemoCron.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        DB::table('users')->insert(['name'=>'hello new','email'=>'hoangpm'.rand() ,'password'=>'123']);
        $this->info('Demo:Cron Cummand Run successfully!');
    }
public function handle ( ) { DB :: table ( 'users' ) -> insert ( [ 'name' => 'hello new' , 'email' => 'hoangpm' . rand ( ) , 'password' => '123' ] ) ; $ this -> info ( 'Demo:Cron Cummand Run successfully!' ) ; }
Execute the console command.
Execute the console command .