v7.0.0 release
This commit is contained in:
1 parent
0e7fa04b03
commit
c4ea9a6cd1
3582 files changed
+626189
-160151
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
@@ -13,10 +14,12 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
* @property string $token
|
||||
* @property int $template_id
|
||||
* @property string $layout_name
|
||||
* @property string $preview_type
|
||||
* @property int|null $extension_id
|
||||
* @property array $content
|
||||
* @property int $admin_id
|
||||
* @property \Carbon\Carbon $expires_at
|
||||
* @property \Carbon\Carbon $created_at
|
||||
* @property Carbon $expires_at
|
||||
* @property Carbon $created_at
|
||||
*/
|
||||
class TemplateLayoutPreview extends Model
|
||||
{
|
||||
@@ -34,6 +37,8 @@ class TemplateLayoutPreview extends Model
|
||||
'token',
|
||||
'template_id',
|
||||
'layout_name',
|
||||
'preview_type',
|
||||
'extension_id',
|
||||
'content',
|
||||
'admin_id',
|
||||
'expires_at',
|
||||
@@ -54,8 +59,6 @@ class TemplateLayoutPreview extends Model
|
||||
|
||||
/**
|
||||
* 템플릿 관계
|
||||
*
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function template(): BelongsTo
|
||||
{
|
||||
@@ -64,8 +67,6 @@ class TemplateLayoutPreview extends Model
|
||||
|
||||
/**
|
||||
* 생성 관리자 관계
|
||||
*
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function admin(): BelongsTo
|
||||
{
|
||||
@@ -75,8 +76,7 @@ class TemplateLayoutPreview extends Model
|
||||
/**
|
||||
* 만료되지 않은 미리보기만 조회하는 스코프
|
||||
*
|
||||
* @param Builder $query 쿼리 빌더
|
||||
* @return Builder
|
||||
* @param Builder $query 쿼리 빌더
|
||||
*/
|
||||
public function scopeNotExpired(Builder $query): Builder
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user