Projeto

Geral

Perfil

Estatísticas
| Branch: | Revisão:

expressolivretools / app / Console / Commands / Teste.php @ ab2f5151

Histórico | Ver | Anotar | Baixar (1,06 KB)

1
<?php
2

    
3
namespace App\Console\Commands;
4

    
5
use Illuminate\Console\Command;
6
use Illuminate\Support\Facades\Storage;
7
use Illuminate\Support\Facades\File;
8

    
9
class Teste extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16
    //protected $signature = 'teste:comando {--o1|opt1=} {--o2|opt2=}';
17
    protected $signature = 'teste:comando';
18

    
19
    /**
20
     * The console command description.
21
     *
22
     * @var string
23
     */
24
    protected $description = 'Comando teste';
25

    
26
    /**
27
     * Create a new command instance.
28
     *
29
     * @return void
30
     */
31
    public function __construct()
32
    {
33
        parent::__construct();
34
    }
35

    
36
    /**
37
     * Execute the console command.
38
     *
39
     * @return mixed
40
     */
41
    public function handle()
42
    {
43
        // $opt1 = $this->option('opt1') ?? null;
44
        // $opt2 = $this->option('opt2') ?? null;
45

    
46
        // if( !is_null($opt1) )
47
        //     print_r( 'opt1 : ' . $opt1 . PHP_EOL);
48

    
49
        // if( !is_null($opt2) )
50
        //     print_r( 'opt2 : ' . $opt2 . PHP_EOL );
51
    }
52

    
53
}
54