Skip to content

Tag: php

RegEx not matching all required chars. What did I do wrong?

I want to allow inputs like _X_C or _X_X_X with the following regex: The following should be allowed only once: _X_C _X_L _L or … _X_X_X (0 to threetimes) The only thing that does not work is the allowance of “_X_X_X” or even “_X” What did I do wrong? Answer You may use See the r…

“Error [Semantical Error] The annotation “@DoctrineORMMappingOnetoMany” in property” on Gitlab CI but not in local env or production [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…

Only some values are editing with a form Laravel 8

I am using a form and I don’t know why I can edit with it the values except in the fields apellido and cedula. I am using the same logic in all the form fields so I dunno what can be causing it. I’m gonna post the code of the view, controller, and model. View Controller Model I have no

Query One to Many Relation in Laravel 8

I have one to many relation for User and Student. Model User.php Model Student.php and in Controller.php it will run and return json can I custom select in Students, only show firstname and lastname ? Answer You should use API Resources for this. Here’s a link to the official documentation: https://lara…

How to insert code as code inside a document

I’m working on a little project for myself to try and make a documentation page, Now everyone knows the basic echo ‘hello world’ inside of the PHP tags like so: yet i have this in an HTML document and was wondering. Is there a way to display PHP code inside of HTML code? or do i need to appr…