Skip to content

joedixon/laravel-translation not updating

I have just installed a Joedixon/Laravel-translation package in Laravel version 8. It shows the words but when I want to update it will not work. I did everything that was said in the documentation and also I’ve read this article about it but it also didn’t work. https://github.com/joedixon/larave…

gor error message when deleteing comment in Laravel project

working with Laravel 6 project and I have following CommentController, and My routes are as following but when I try to delete comment got following validation error message The comment field is required. how could I fix this problem here? edit.blade.php Answer Because HTML forms can’t send PUT, PATCH a…

How do I download a pdf blob file from database?

I’m trying to download a pdf file from the database stored as a blob datatype using the code blow, right now I’m only able to view the file as .php and not .pdf. The $result->mime contains the data-type of the file as application/pdf. The $result->pdf_file contains the PDF file itself as BLO…

.htaccess stop directory listing and forward to handler.php

I am trying to implement SEO friendly URLs using .htaccess and PHP. I have achieved 90% of my goal and struggling with just one use case. Here is what happing, when I access the following url it lands on This is perfect and that is what I want because then I manage it myself. The real problem is when I

Remove Child does not contain attribute value

I am practicing with XML DOM PHP parsing. I have such XML file (shorter version): I created attribute with name “id” and value “2” for two Tag elements. Now I would like to: Get only Tag elements which did not contain attribute ‘id=”2″‘; Get only Tag elements wh…