관리-도구
편집 파일: Picture.php.tar
home/tattooscyy/test/app/Picture.php 0000604 00000001356 15224653207 0013610 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Picture extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'picture'; protected $fillable = [ 'picture', 'user_id', 'ip', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); Picture::observe(new UserActionsObserver); } } home/tattooscyy/www/app/Picture.php 0000644 00000001356 15224653240 0013456 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Picture extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'picture'; protected $fillable = [ 'picture', 'user_id', 'ip', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); Picture::observe(new UserActionsObserver); } } home/tattooscyy/api2/app/Models/Picture.php 0000604 00000001057 15224674775 0014722 0 ustar 00 <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Picture extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'picture'; protected $fillable = [ 'picture', 'user_id', 'ip', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; }