Spaces:
Running
Running
Download app/Models/News.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Models/News.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Models/News.php
-
curl -L -o News.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/17620ec48bf4071b3b02de4eac231d791a9eca1c/app/Models/News.php
375 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| class News extends Model | |
| { | |
| use HasFactory; | |
| protected $fillable = [ | |
| 'title', | |
| 'summary', | |
| 'source', | |
| 'url', | |
| 'published_at', | |
| ]; | |
| protected $casts = [ | |
| 'published_at' => 'datetime', | |
| ]; | |
| } | |