public function type($name)
    {
        $hook = $this->hooks()->where('name', $name)->first();

        if (!is_null($hook)) {
            return $hook->type;
        }
    }
public function type($name)
    {
        $hook = $this->hooks()->where('name', $name)->first();

        if (!is_null($hook)) {
            return $hook->type;
        }
    }
public function type ( $ name ) { $ hook = $ this -> hooks ( ) -> where ( 'name' , $ name ) -> first ( ) ; if ( ! is_null ( $ hook ) ) { return $ hook -> type ; } }
Get type of hook.

@param $name

@return string
Get type of hook .