frontend/backend update

This commit is contained in:
carodej
2020-04-23 12:40:22 +02:00
parent 8740cc7685
commit 8cbc58f775
46 changed files with 1838 additions and 861 deletions

22
app/Share.php Normal file
View File

@@ -0,0 +1,22 @@
<?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']]);
}
}