Se colocaran ejercios para practicar de codigobit
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- <?php
-
- namespace App\Commands;
-
- use Illuminate\Console\Scheduling\Schedule;
- use LaravelZero\Framework\Commands\Command;
- use Illuminate\Support\Facades\Process;
-
- class Redes_wifi extends Command
- {
- /**
- * The signature of the command.
- *
- * @var string
- */
- protected $signature = 'app:redes_wifi';
-
- /**
- * The description of the command.
- *
- * @var string
- */
- protected $description = 'Command description';
-
- /**
- * Execute the console command.
- *
- * @return mixed
- */
- public function handle()
- {
- $result = Process::run('netsh wlan show profile -netsh wlan show profile <WiFi_Name> key=clear');
-
- return $result->output();
- }
-
- /**
- * Define the command's schedule.
- *
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
- * @return void
- */
- public function schedule(Schedule $schedule): void
- {
- // $schedule->command(static::class)->everyMinute();
- }
- }
|