mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
This commit is contained in:
parent
21e59d775a
commit
f60ae41bf6
26 changed files with 741 additions and 70 deletions
|
|
@ -16,7 +16,7 @@ class Post extends Model
|
|||
{
|
||||
use SoftDeletes, Favoriteable;
|
||||
|
||||
protected $fillable = [ 'rating', 'extension', 'featured' ];
|
||||
protected $fillable = [ 'rating', 'extension', 'hash', 'featured' ];
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,13 +9,14 @@ use Laravel\Sanctum\HasApiTokens;
|
|||
use MongoDB\Laravel\Auth\User as Authenticatable;
|
||||
use MongoDB\Laravel\Relations\HasMany;
|
||||
use Overtrue\LaravelFavorite\Traits\Favoriter;
|
||||
use Spatie\Permission\Traits\HasRoles;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
protected $table = 'users';
|
||||
|
||||
use HasApiTokens, HasFactory, Notifiable, Favoriter;
|
||||
use HasApiTokens, HasFactory, Notifiable, Favoriter, HasRoles;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue