mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-23 01:24:09 +08:00

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;
|
|
} |