Skip to content

Commit

Permalink
feat: add slug model
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 8, 2025
1 parent e9ed491 commit edaec51
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Models/Base/BaseSlug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace CSlant\Blog\Core\Models\Base;


use Botble\Slug\Models\Slug as BotbleSlug;

class BaseSlug extends BotbleSlug
{
}
25 changes: 25 additions & 0 deletions src/Models/Slug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace CSlant\Blog\Core\Models;

use AllowDynamicProperties;
use Carbon\Carbon;
use CSlant\Blog\Core\Models\Base\BaseSlug;

/**
* Class Slug
* @package CSlant\Blog\Core\Models
*
* @property int $id
* @property string $key
* @property int $reference_id
* @property string $reference_type
* @property string $prefix
* @property Carbon $created_at
* @property Carbon $updated_at
* @mixin BaseSlug
*/
#[AllowDynamicProperties]
class Slug extends BaseSlug
{
}

0 comments on commit edaec51

Please sign in to comment.