Skip to content

How to display the HTML output in rows

Where I am using the div class, there is a line-break after every if statement and the rows are not in alignment. How can I correctly align the php output, so both rows is horizontal aligned. function …

Using stacks in Laravel 8

I’m building a site using Laravel 8 and Jetstream. Jetstream is opinionated about the javascript / css framework, which is great, but I’m needing to add an external javascript library to one of my components, and I don’t see anywhere to add them in the default app layout. So I added a stack …

Insert a php string as multiple rows on MySQL table

I have a table with more than 750 rows of data that I paste on a textarea and get as a single string variable, then I pass the data as just one string thru an ajax and I want to insert it on my database in just one INSER INTO line Is there a way to make this work, I

How to combine two counts using Laravel

Using Laravel 8 for a restful API. A table in the database has following fields report_date , supervisor_id and supervisor_note I want to retrieve a result that counts the number of reports on any given day date and also counts all of the null values in supervisor_notes field. I am using the following Laravel…

Array inside arrays of arrays

I need help, I can’t assign the single values of the array inside the array of the array to a variable. I could assign the values of the second dimension array to single variables like this: But how can I use a second loop to count and extract the single values of the products?I have tried with a second…

Laravel 8: Base table or view not found

I have two tables at db, one of them is named users which simply contains user information of website and the other one is tags which contains some hashtags that users can choose from them. I also …