First commit for project
This commit is contained in:
38
app/Models/Project.php
Normal file
38
app/Models/Project.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $title
|
||||
* @property array $categories
|
||||
* @property string $author
|
||||
* @property string $image_url
|
||||
* @property Carbon $release_data
|
||||
* @property string $project_url
|
||||
* @property string $project_version
|
||||
* @property string $description
|
||||
*/
|
||||
class Project extends Model
|
||||
{
|
||||
|
||||
// use HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'title' => 'string',
|
||||
'categories' => 'array',
|
||||
'author' => 'string',
|
||||
'image_url' => 'string',
|
||||
'release_data' => 'datetime:d-m-Y',
|
||||
'project_url' => 'string',
|
||||
'project_version' => 'string',
|
||||
'description' => 'string'
|
||||
];
|
||||
|
||||
}
|
Reference in New Issue
Block a user