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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/packages/Webkul/Installer/src/Database/Seeders/Lead/   drwxrwxrwx
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Installer\Database\Seeders\Lead;

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

class 
PipelineSeeder extends Seeder
{
    
/**
     * Seed the application's database.
     *
     * @param  array  $parameters
     * @return void
     */
    
public function run($parameters = [])
    {
        
DB::table('lead_pipelines')->delete();

        
DB::table('lead_pipeline_stages')->delete();

        
$now Carbon::now();

        
$defaultLocale $parameters['locale'] ?? config('app.locale');

        
DB::table('lead_pipelines')->insert([
            [
                
'id'         => 1,
                
'name'       => trans('installer::app.seeders.lead.pipeline.default', [], $defaultLocale),
                
'is_default' => 1,
                
'created_at' => $now,
                
'updated_at' => $now,
            ],
        ]);

        
DB::table('lead_pipeline_stages')->insert($data = [
            [
                
'id'               => 1,
                
'code'             => 'new',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.new', [], $defaultLocale),
                
'probability'      => 100,
                
'sort_order'       => 1,
                
'lead_pipeline_id' => 1,
            ], [
                
'id'               => 2,
                
'code'             => 'follow-up',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.follow-up', [], $defaultLocale),
                
'probability'      => 100,
                
'sort_order'       => 2,
                
'lead_pipeline_id' => 1,
            ], [
                
'id'               => 3,
                
'code'             => 'prospect',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.prospect', [], $defaultLocale),
                
'probability'      => 100,
                
'sort_order'       => 3,
                
'lead_pipeline_id' => 1,
            ], [
                
'id'               => 4,
                
'code'             => 'negotiation',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.negotiation', [], $defaultLocale),
                
'probability'      => 100,
                
'sort_order'       => 4,
                
'lead_pipeline_id' => 1,
            ], [
                
'id'               => 5,
                
'code'             => 'won',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.won', [], $defaultLocale),
                
'probability'      => 100,
                
'sort_order'       => 5,
                
'lead_pipeline_id' => 1,
            ], [
                
'id'               => 6,
                
'code'             => 'lost',
                
'name'             => trans('installer::app.seeders.lead.pipeline.pipeline-stages.lost', [], $defaultLocale),
                
'probability'      => 0,
                
'sort_order'       => 6,
                
'lead_pipeline_id' => 1,
            ],
        ]);
    }
}

:: 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.0082 ]--