UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_c907d2284e8a
/
app
/
Models
/
Coupon
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
Coupon.php
<?php namespace EstudioLMS\Models\Coupon; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; /** * EstudioLMS\Models\Coupon\Coupon * * @property int $id * @property string $title * @property string $code * @property float $discount * @property string $published_at * @property string $unpublished_at * @property bool $published * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $updated_at * @property-read \Illuminate\Database\Eloquent\Collection|\EstudioLMS\Models\Courses\Course\Course[] $courses * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereCode($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereCreatedAt($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereDiscount($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereId($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon wherePublished($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon wherePublishedAt($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereTitle($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereUnpublishedAt($value) * @method static \Illuminate\Database\Query\Builder|\EstudioLMS\Models\Coupon\Coupon whereUpdatedAt($value) * @mixin \Eloquent */ class Coupon extends Model { protected $fillable = [ 'title', 'code', 'discount', 'published_at', 'unpublished_at', 'published' ]; public function courses() { return $this->belongsToMany('EstudioLMS\Models\Courses\Course\Course', 'coupon_course'); } public function getPublishedAtAttribute($date) { if (!empty($date)) { return Carbon::createFromFormat('Y-m-d H:i:s', $date)->format('d/m/Y H:i'); } return null; } public function getUnpublishedAtAttribute($date) { if (!empty($date)) { return Carbon::createFromFormat('Y-m-d H:i:s', $date)->format('d/m/Y H:i'); } return null; } }
Copyright © 2026 - UnknownSec