]> BookStack Code Mirror - bookstack/blob - app/Book.php
28c47c166c6d6c1f0064a90c4e86ecdb4e82e61a
[bookstack] / app / Book.php
1 <?php
2
3 namespace Oxbow;
4
5 use Illuminate\Database\Eloquent\Model;
6
7 class Book extends Model
8 {
9
10     protected $fillable = ['name', 'description'];
11
12     public function getUrl()
13     {
14         return '/books/' . $this->slug;
15     }
16
17     public function getEditUrl()
18     {
19         return $this->getUrl() . '/edit';
20     }
21
22 }