1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
use Illuminate\Database\Capsule\Manager as DB; use Carbon\Carbon as Carbon;
class OrderItemTrack extends BaseModel{ protected $table = "order_item_track";
public function orderItem(){ return $this->belongsTo('OrderItem'); }
public function fileIsReadable($path = ''){ // vdump($this->file_src, $this->file_src, is_readable("{$this->file_path}{$this->file_src}")); return ($this->file_src && $this->file_src && is_readable("{$path}{$this->file_path}{$this->file_src}")); } }
|