Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/tokoku.fixmate.id/app/Models/
Upload File :
Current File : /home/aplikasiposinfo/public_html/tokoku.fixmate.id/app/Models/Log.php

<?php

namespace App\Models;

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

class Log extends Model
{
    use HasFactory;
    protected $fillable = [
       "user_id",
       "action",
       "action_detail",
       "ip",
       "ip_detail",
    ];
    // protected $casts = [
    //     'action_detail' => 'array', // Automatically converts JSON string to an array
    // ];

    public function user()
    {
        $pengguna = Pengguna::where('id', $this->user_id)->first();
        return $pengguna;
    }

    public function pengguna()
    {
        return $this->belongsTo(Pengguna::class,'user_id');
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]