Added Production build.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Post extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
"title",
|
||||
"text",
|
||||
"post_time",
|
||||
"time"
|
||||
];
|
||||
|
||||
public function timePeriod(){
|
||||
return $this->belongsTo(TimePeriod::class);
|
||||
}
|
||||
public function occupation(){
|
||||
return $this->belongsTo(Occupation::class);
|
||||
}
|
||||
public function status(){
|
||||
return $this->belongsTo(Status::class);
|
||||
}
|
||||
public function user(){
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
public function files(){
|
||||
return $this->hasMany(File::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user