I’m working on my school project which is gallery, a clone of flickr and unsplash really. Right now I was working on comments system which works rather well all things considered, but I also want to add replies under those comments and having textfields under each comment seems clunky, so I wrote small …
PDFTron draw text sideways
For my specific purpose user draw rectangle annotation on web viewer and later on replace that with Free-Text in the place of Rectangle annotation. As you can see in above image i have added one …
Connection was not established Xdebug 3 with PhpStorm
Good afternoon. When an attempt is made to debug the script on PHP 8, PhpStorm reports that there is no connection with version 3 xdebug. Works with all versions below 3. I tried to change the parameters of xdebug.remote_{host, port} to xdebug.client_{host, port} but also did not help. Answer Xdebug 3 will be…
Confirm delete using sweetalert in Laravel Form Collective
I’m a beginner in using laravel, please help. I’m using sweet alert to ask for confirmation before deleting. The error says that it is missing a required parameter for destroy, though I am certainly sure that I am passing an id to the function destroy. Here’s my code Announcement.blade.php d…
Laravel does not read .env variables when there is a # character
In Laravel 7 when I do a simple: the output is always: And my .env file is: I am waiting for a response : “Secret: 123#456#789”. And don’t understand why I receive only “Secret: 123”. I know it is a trivial question, but I am on this problem… Thanks Answer # is used to decl…
Deploying Laravel app to Google App Engine
I am trying to deploy my Laravel 7.29.3 app to Google App Engine Standard environment. I have followed the guided located here https://cloud.google.com/community/tutorials/run-laravel-on-appengine-standard. However, I get a View[Welcome] not found error when I view my deployment. My app.yaml file looks like b…
Laravel: Passing data into route from database
I have created a theme system and I am trying to make the theme’s route file pull pages from the database and assign a route to it, below is my theme route file. The issue I am having is an Undefined variable: theme from my ThemeSettings::all model request. Route.php (In theme) ThemeSettings Migration T…
How to display link delete to auth user in Laravel?
I’m having a simple message/comment features. The message can be deleted by using SoftDeletes function in Laravel. However, I want to make the message can be deleted or the link message being display by the logged-in user only. They cannot delete other’s message. So, here is my code in message.bla…
populating php dropdown options with mysql result values shows “Array” when I sort() the array
Edit: When I commented out the sort() line, now it is populating properly. PHP sort looks in-place so I don’t know what happened. I also had to insert a redundant <div> right above the form to either get the array of option values from a session variable or calling the querying function to get it …
get_template_part – WordPress not working
I am trying to place the content of the about page inside a div on the header , the template part is located on folder template-parts/content-about.php on the header the code is: And the content-about.php looks like this: The issue is that is showing on the div the same content as the current page for example…