PHP Classes

File: server/database/seeders/PaymentSeeder.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/database/seeders/PaymentSeeder.php   Download  
File: server/database/seeders/PaymentSeeder.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 660 bytes
 

Contents

Class file image Download
<?php

namespace Database\Seeders;

use
Illuminate\Database\Seeder;
use
Illuminate\Support\Facades\DB;
use
Illuminate\Support\Facades\Hash;
use
Illuminate\Support\Str;

class
PaymentSeeder extends Seeder
{
   
/**
     * Run the database seeds.
     *
     * @return void
     */
   
public function run()
    {
       
DB::table('payments')->insert([
           
'name' => 'Visa Card',
           
'currencies' => '["JOD", "USD"]',
           
'img' => 'img-uri',
           
'min_deposit' => 20,
           
'max_deposit' => 500,
           
'min_withdrawal' => 50,
           
'max_withdrawal' => 200,
           
'slug' => Str::uuid(),
        ]);
    }
}