Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 506 | Revision 508 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 506 Revision 507
Zeile 7... Zeile 7...
7
    use App\Models\Item;
7
    use App\Models\Item;
8
    use App\Models\Action;
8
    use App\Models\Action;
9
    use App\Models\Medium;
9
    use App\Models\Medium;
10
    use App\Models\Order;
10
    use App\Models\Order;
11
    use App\Models\OrderAddress;
11
    use App\Models\OrderAddress;
-
 
12
    use App\Models\OrderType;
12
    use App\Models\PaymentMethod;
13
    use App\Models\PaymentMethod;
13
    use App\Models\Price;
14
    use App\Models\Price;
14
    use App\Models\ActionMedium;
15
    use App\Models\ActionMedium;
15
    use App\Models\ItemMedium;
16
    use App\Models\ItemMedium;
16
    use App\Models\DirectoryMedium;
17
    use App\Models\DirectoryMedium;
Zeile 837... Zeile 838...
837
                    id>" . $start . "
838
                    id>" . $start . "
838
            ";
839
            ";
839
            $methods = DB::connection( 'old' )->select( $sql );
840
            $methods = DB::connection( 'old' )->select( $sql );
840
            foreach ( $methods as $method )
841
            foreach ( $methods as $method )
841
            {
842
            {
842
                PaymentMethod::factory()->create( [
843
                OrderType::factory()->create( [
843
                    "id"            => $method->id,
844
                    "id"            => $method->id,
844
                    "internal_name" => $method->rufname,
845
                    "internal_name" => $method->rufname,
845
                    "name"          => $method->name,
846
                    "name"          => $method->name,
846
                    "short"         => $method->short,
847
                    "short"         => $method->short,
847
                ] );
848
                ] );