PHP Classes

File: server/database/seeders/AdminSeeder.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/database/seeders/AdminSeeder.php   Download  
File: server/database/seeders/AdminSeeder.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: 493 bytes
 

Contents

Class file image Download
<?php

namespace Database\Seeders;

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

class
AdminSeeder extends Seeder
{
   
/**
     * Run the database seeds.
     *
     * @return void
     */
   
public function run()
    {
       
DB::table('users')->insert([
           
'name' => 'Admin',
           
'email' => 'admin@admin.com',
           
'password' => Hash::make('admin123'),
           
'is_admin' => true
       
]);
    }
}