403Webshell
Server IP : 162.253.224.18  /  Your IP : 216.73.216.135
Web Server : Apache
System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : dejavumk ( 1184)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/dejavumk/nutricoach.dejavumkt.info/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/dejavumk/nutricoach.dejavumkt.info/app/Anthropometric_user.php
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;

class Anthropometric_user extends Model
{
    protected $table = 'anthropometric_user';
    protected $guarded  = [''];

    public function getCreatedAtAttribute($date)
    {
    return Carbon::createFromFormat('Y-m-d H:i:s', $date)->format('Y-m-d');
    }

    public function getUpdatedAtAttribute($date)
    {
    return Carbon::createFromFormat('Y-m-d H:i:s', $date)->format('Y-m-d');
    }
    public static function store ($user_id, $anthropometric_id, $value)
    {
        $now = date('d-m-Y');
         return static::create([
             'user_id' => $user_id,
            'anthropometric_id' => $anthropometric_id,
            'value' =>  $value,
            "date" =>  $now # new \Datetime()
        ]);

    }
}





Youez - 2016 - github.com/yon3zu
LinuXploit