Skip to content

Tag: laravel

Insert multiple items in Laravel Collection inside a php loop

Hi I am trying to insert multiple items into a laravel collection inside a php loop but only one is getting inserted (the last one), please help to insert all the values. This array $some_array = array(); has values like 1,2,3,4 The loop is like Output required Answer use collection class at the top of the pa…

Laravel Views Subfolders routing

I have sub folders inside my view folder called I want to route this saled.blade.php and datauploader.php files in web.php I have tried with in both the ways.but both shows 404 errors. and this is the way I mentioned the url of the file in home.blade.php So please help to resolve this Answer if directly form …

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…