mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
get data from dataabse and upload/download storage chart
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Users\Models;
|
||||
|
||||
use ByteUnits\Metric;
|
||||
use Domain\Traffic\Models\Traffic;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use Domain\Files\Models\File;
|
||||
@@ -186,6 +187,11 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
return $this->hasMany(Folder::class);
|
||||
}
|
||||
|
||||
public function traffics(): HasMany
|
||||
{
|
||||
return $this->hasMany(Traffic::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the password reset notification.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user