mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
93fd869ba3
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;
|
|
} |