CURRENT PATH:
/
home
/
u451283037
/
domains
/
rupandehiinstitute.com
/
public_html
/
subdomains
/
smarttraining
/
app
/
KEMBALI
|
HOME
Upload File Local:
Upload
Upload via URL:
Download
Dir Baru
File Baru
Editing:
Notice.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Notice extends Model { protected $guarded = []; public function user() { return $this->belongsTo(User::class); } public function filterDataApi() { return [ 'notice_id' => $this->id, 'notice_title' => $this->title, 'notice_message' => $this->message, 'notice_by' => $this->user ? $this->user->first_name . " " . $this->user->last_name : '-', 'notice_date' => $this->notice_date, 'notice_time' => $this->created_at->format('h:i:s A'), 'notice_date_time' => $this->notice_date . " " . $this->created_at->format('h:i:s A'), 'notice_at' => $this->created_at->diffForHumans() ]; } }
SIMPAN
BATAL