public function update(Authenticatable $user, Content $content)
    {
        $type  = $content->getAttribute('type');
        $owner = $content->ownedBy($user);

        return ($this->can("manage {$type}") || ($owner && $this->can("update {$type}")));
    }
public function update(Authenticatable $user, Content $content)
    {
        $type  = $content->getAttribute('type');
        $owner = $content->ownedBy($user);

        return ($this->can("manage {$type}") || ($owner && $this->can("update {$type}")));
    }
public function update ( Authenticatable $ user , Content $ content ) { $ type = $ content -> getAttribute ( 'type' ) ; $ owner = $ content -> ownedBy ( $ user ) ; return ( $ this -> can ( "manage {$type}" ) || ( $ owner && $ this -> can ( "update {$type}" ) ) ) ; }
Update content policy.

@param  \Illuminate\Contracts\Auth\Authenticatable  $user
@param  \Orchestra\Story\Model\Content  $content

@return bool
Update content policy .