Add methods to various page controllers for handling index, store, and show actions

This commit is contained in:
2025-07-28 12:29:30 +05:00
parent 69dd14e06c
commit 2bf0c8f20d
31 changed files with 420 additions and 8 deletions

18
app/Models/News.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class News extends Model
{
use HasFactory;
protected $fillable = [
'title',
'slug',
'content',
'published_at',
];
}