public function whereTitle($title, callable $callback = null)
    {
        $item = $this->findBy('title', $title);

        if (is_callable($callback)) {
            return call_user_func($callback, $item);
        }

        return $item;
    }
public function whereTitle($title, callable $callback = null)
    {
        $item = $this->findBy('title', $title);

        if (is_callable($callback)) {
            return call_user_func($callback, $item);
        }

        return $item;
    }
public function whereTitle ( $ title , callable $ callback = null ) { $ item = $ this -> findBy ( 'title' , $ title ) ; if ( is_callable ( $ callback ) ) { return call_user_func ( $ callback , $ item ) ; } return $ item ; }
Find menu item by given its title.

@param  string        $title
@param  callable|null $callback
@return mixed
Find menu item by given its title .