document() public static method

public static document ( $type, $data )
Beispiel #1
0
 public static function checkDocumentOwner($type, $data)
 {
     if (Auth::user()->id == Laralum::document($type, $data)->author->id) {
         return true;
     } else {
         return false;
     }
 }