!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/wataxi.picotech.app/public_html/vendor/laravel/cashier/database/factories/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Cashier\Database\Factories;

use 
DateTimeInterface;
use 
Illuminate\Database\Eloquent\Factories\Factory;
use 
Illuminate\Support\Str;
use 
Laravel\Cashier\Cashier;
use 
Laravel\Cashier\Subscription;
use 
Stripe\Price as StripePrice;
use 
Stripe\Subscription as StripeSubscription;

class 
SubscriptionFactory extends Factory
{
    
/**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    
protected $model Subscription::class;

    
/**
     * Define the model's default state.
     *
     * @return array
     */
    
public function definition()
    {
        
$model Cashier::$customerModel;

        return [
            (new 
$model)->getForeignKey() => ($model)::factory(),
            
'name' => 'default',
            
'stripe_id' => 'sub_'.Str::random(40),
            
'stripe_status' => StripeSubscription::STATUS_ACTIVE,
            
'stripe_price' => null,
            
'quantity' => null,
            
'trial_ends_at' => null,
            
'ends_at' => null,
        ];
    }

    
/**
     * Add a price identifier to the model.
     *
     * @param  \Stripe\Price|string  $price
     * @return $this
     */
    
public function withPrice($price)
    {
        return 
$this->state([
            
'stripe_price' => $price instanceof StripePrice $price->id $price,
        ]);
    }

    
/**
     * Mark the subscription as active.
     *
     * @return $this
     */
    
public function active()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_ACTIVE,
        ]);
    }

    
/**
     * Mark the subscription as being within a trial period.
     *
     * @param  \DateTimeInterface  $trialEndsAt
     * @return $this
     */
    
public function trialing(DateTimeInterface $trialEndsAt null)
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_TRIALING,
            
'trial_ends_at' => $trialEndsAt,
        ]);
    }

    
/**
     * Mark the subscription as canceled.
     *
     * @return $this
     */
    
public function canceled()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_CANCELED,
            
'ends_at' => now(),
        ]);
    }

    
/**
     * Mark the subscription as incomplete.
     *
     * @return $this
     */
    
public function incomplete()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_INCOMPLETE,
        ]);
    }

    
/**
     * Mark the subscription as incomplete where the allowed completion period has expired.
     *
     * @return $this
     */
    
public function incompleteAndExpired()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_INCOMPLETE_EXPIRED,
        ]);
    }

    
/**
     * Mark the subscription as being past the due date.
     *
     * @return $this
     */
    
public function pastDue()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_PAST_DUE,
        ]);
    }

    
/**
     * Mark the subscription as unpaid.
     *
     * @return $this
     */
    
public function unpaid()
    {
        return 
$this->state([
            
'stripe_status' => StripeSubscription::STATUS_UNPAID,
        ]);
    }
}

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