Skip to content

Laravel 9.x Contact form can’t connect to class

I’m trying to make a contact form. Main idea is user will send data, I will save the data to database, I will get the data from database, I will send the data as an email. I was following a tutorial -> https://www.positronx.io/laravel-contact-form-example-tutorial/ When I tried to reach classes on my…

Getting rid of numbers in a json response ( LARAVEL 9 )

i’m having some problems with my json response. When I make an api call from a user (id:1) it returns the response well, but if i change the user (f.e id:2) it returns it with some identifiers on it. Any idea? Response from id:1 Response from id:2 Thanks! EDIT 1 This is how I am getting the response: An…

PHP “||” is returning the wrong value

I am making an upload script for a music-related thing i am building. I check whether the file is an MP3 or an OGG, but even if it IS, php will return true on this and say that it isnt on either of these checks. Here’s some example code: What it returns: If i am doing something wrong, i am

cache with dynamic pages

I am currently developing a WEB site on symfony 6 and during production testing I have a problem with the TWIG cache. Indeed, my site includes a page editing feature. So when rendering the first time, the page is rendered correctly. However, if the editor then modifies the page, and I return to the page is st…