1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-29 19:25:00 +00:00
pixelfed/app/Page.php

26 lines
376 B
PHP
Raw Normal View History

2019-01-31 19:55:37 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Page extends Model
{
const SLUG_ROOT = [
'site',
'page'
];
protected $fillable = ['slug'];
public function url()
{
return url($this->slug);
}
public function editUrl()
{
return url("/i/admin/settings/pages/edit?page=".urlencode($this->slug));
}
}