Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 151 | Revision 1626 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class dump extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'command:dump';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Erstellt CSV-Dateien für Preisagenturen';

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
            $agencies = \App\Models\PriceAgency::all();
            foreach($agencies as $agency)
            {
                    $this->info($agency["name"]);
            }
    }
}