first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace Modules\Sitemap\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
// use Modules\Sitemap\Database\Factories\SitemapFactory;
class SitemapConfig extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
"title",
"sitemap_excludes",
"ignore_robot",
"max_depth",
"max_crawl_count",
"order",
"status"
];
protected function casts(): array {
return [
"ignore_robot" => "boolean",
];
}
public function scopeActive($builder) {
$builder->where("status", 1);
}
// protected static function newFactory(): SitemapFactory
// {
// // return SitemapFactory::new();
// }
}