- public sharing refactored part 2

This commit is contained in:
Peter Papp
2021-03-19 09:04:18 +01:00
parent db9900fcfb
commit ed8ab2978f
22 changed files with 1296 additions and 1190 deletions
+4
View File
@@ -12,6 +12,10 @@ use TeamTNT\TNTSearch\Indexer\TNTIndexer;
use \Illuminate\Database\Eloquent\SoftDeletes;
use Kyslik\ColumnSortable\Sortable;
/**
* @method static whereUserId($user_id)
* @method static whereId($id)
*/
class File extends Model
{
use Searchable, SoftDeletes, Sortable, HasFactory;
+1 -1
View File
@@ -32,7 +32,7 @@ class Share extends Model
*/
public function getLinkAttribute()
{
return url('/shared', ['token' => $this->attributes['token']]);
return url('/share', ['token' => $this->attributes['token']]);
}
public function user()