mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Новости(CRUD + PhotoStorage)
This commit is contained in:
14
app/Models/News.php
Normal file
14
app/Models/News.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class News extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $fillable = ['title', 'description', 'headteacher_id']; // убрать headteacher_id после добавления авторизации
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user