mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-17 15:52:15 +00:00
23 lines
356 B
PHP
23 lines
356 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Share extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
protected $appends = ['link'];
|
|
|
|
/**
|
|
* Generate share link
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLinkAttribute() {
|
|
|
|
return url('/shared', ['token' => $this->attributes['token']]);
|
|
}
|
|
}
|