Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

coustas's avatar

issue with api

Class "Str" not found (View: /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/resources/exceptions/renderer/markdown.blade.php)

http://localhost:8080/v2/games post method it give us this error above we are having Laravel with frankenphp "laravel/framework": "^12.0", using as builder FROM dunglas/frankenphp:1-php8.4-bookworm AS builder

the application works via frontend but if you put the api in browser or postman it will give you this error

0 likes
5 replies
Glukinho's avatar
  1. use fully qualified class name in a view:
\Illuminate\Support\Str::method(...)

// instead of 
Str::method(...)
  1. put in a view, at the beginning:
@use('\Illuminate\Support\Str')
coustas's avatar

i update laravel and now the is working locally fine but the issue on staging when i deploy
i am getting Maximum execution time of 30 seconds exceeded

coustas's avatar

somehow i cannot test now because weekend pods are down :( will let you know monday :) thank you for the help speak to u soon guys

Please or to participate in this conversation.