]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/View.php
Started addition of favourite system
[bookstack] / app / Actions / View.php
index e9841293b5c72a1d20f045b81e8f95a7a534a9e0..c5ec6a38dc87cbd91647fb729ba591e25557e38c 100644 (file)
@@ -1,6 +1,7 @@
 <?php namespace BookStack\Actions;
 
 use BookStack\Model;
+use Illuminate\Database\Eloquent\Relations\MorphTo;
 
 class View extends Model
 {
@@ -9,9 +10,8 @@ class View extends Model
 
     /**
      * Get all owning viewable models.
-     * @return \Illuminate\Database\Eloquent\Relations\MorphTo
      */
-    public function viewable()
+    public function viewable(): MorphTo
     {
         return $this->morphTo();
     }