⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
onlinestore.ng
/
app
/
Models
/
Edit File: Store.php
getTable(); $data['slug'] = $obj->createSlug($table, $data['name']); $store = static::query()->create($data); return $store; } public function currentLanguage() { return $this->lang; } public function store_user() { return $this->hasOne('App\Models\UserStore', 'store_id', 'id'); } public static function slugs($data) { $obj = new Utility(); $table = with(new Store)->getTable(); $slug = $obj->createSlug($table, $data['name']); return $slug; } public static function pwa_store($store){ try { $pwa_data = \File::get(storage_path('uploads/customer_app/store_' . $store->id . '/manifest.json')); $pwa_data = json_decode($pwa_data); } catch (\Throwable $th) { $pwa_data = []; } return $pwa_data; } }
Simpan