Skip to content

Error while use Laravel derectives in URL #400

Description

@klunker

Describe the bug
I try to add a navigation link to some route on my website. I try to use route('register') inside a markdown/documentation file in Larecipe, like this:

[Some link]({{ route('some_link') }})

But it causes a syntax error:

ParseError: syntax error, unexpected token "&" in /var/www/app/vendor/binarytorch/larecipe/src/Traits/HasBladeParser.php(25) : eval()'d code:62

To Reproduce
Steps to reproduce the behavior:

  1. Go to your Larecipe documentation.
  2. Add a link using Blade syntax {{ route('some_link') }} inside markdown content for link creation in ().
  3. Save and view the page.
  4. See the parse error described above.

Expected behavior
A link to the register route should render correctly in the documentation without causing any syntax errors.

Used

"binarytorch/larecipe": "^2.8",
"laravel/framework": "^11.28",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions