Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
app
/
Models
:
Adverts.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // this Code is Cracked by dharunMods-YouTube-Channel namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Adverts extends Model { use HasFactory; public static function search($search): \Illuminate\Database\Eloquent\Builder { return empty($search) ? static::query() : static::query()->where('nickname', 'like', '%'.$search.'%'); } public function user(){ return $this->belongsTo(User::class, 'user_id', 'id'); } public function duser(){ return $this->belongsTo('App\Models\User', 'user_id'); } protected $cast = [ 'payment_methods' => 'array', ]; }