mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
![Dan Brown](/assets/img/avatar_default.png)
Phasing out the view service from being a generic 'service' class, moving the core create/delete methods into the model. The idea is that the existing query work will need to interlink with the favourite system so maybe we have a (or many composable) query building classes rather than mixing query building and create/delete work as per the old service.
11 lines
227 B
PHP
11 lines
227 B
PHP
<?php namespace BookStack\Interfaces;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|
|
|
interface Viewable
|
|
{
|
|
/**
|
|
* Get all view instances for this viewable model.
|
|
*/
|
|
public function views(): MorphMany;
|
|
} |