File tree Expand file tree Collapse file tree
app/Console/Commands/excel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Console \Commands \excel ;
4+
5+ use App \Imports \CodingActivitiesEUCodeWeekSiteImport ;
6+ use Illuminate \Console \Command ;
7+ use Illuminate \Support \Facades \Log ;
8+ use Maatwebsite \Excel \Facades \Excel ;
9+
10+ class DigitaleWolven extends Command
11+ {
12+ /**
13+ * The name and signature of the console command.
14+ *
15+ * @var string
16+ */
17+ protected $ signature = 'excel:digitale_wolven ' ;
18+
19+ /**
20+ * The console command description.
21+ *
22+ * @var string
23+ */
24+ protected $ description = 'Digitale Wolven From Excel File ' ;
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+ public function handle (): void
40+ {
41+ Log::info ('Loading Digitale Wolven ' );
42+
43+ Excel::import (
44+ new CodingActivitiesEUCodeWeekSiteImport (),
45+ 'digitale-wolven-events.xlsx ' ,
46+ 'excel '
47+ );
48+ }
49+ }
You can’t perform that action at this time.
0 commit comments