Skip to content
Advertisement

Tag: laravel-8

Pass variable to view via controller in Laravel

I need help with passing the variable I have initialized using __construct() to view in Laravel. Here is my controller code I get an error undefined variable profileInfo Answer When using compact() the parameters used must be defined as variables: In this case compact() will create an array like this:

unable to get response form an API in Laravel [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 months ago. Improve this question I am getting null response in laravel after dd(); ,however in Postman i

Does Laravel 8 require PHP 8.1?

So.. I developed a project with Laravel 9, then I had to upload it to my client’s server by FTP ( which was slow and painful ) to find out only afterwards that my client’s server PHP version could not go over 8.0. I tried to open the project live link ( to where I uploaded ) and the composer

code event[] calendar in laravel 8 not working

I created a calendar with laravel 8 and PHP 8,it is running ok in php 7 but I have to upgrade to php 8 because of the demands of the times I have successfully saved data in the database but the data in mysql does not appear in the calendar, even though I have used event[], I have checked that

Laravel – Insert Selected Row

I have a table : header 1 header 2 button First row insert  Second row insert Third row insert I want when the insert button is clicked, the row with that button is inserted in the database. So far I have in the controller : And in blade : But the last row is inserted whatever button is clicked.. Answer

Laravel 8 – Get search result in friend lists

I am Working on laravel 8 version. I have two Models were table structure is as following. User FriendList i want to search result from User but condition is like it should be in friendlist and user should be individual (is_individual = 1) I have tried following but i wan improve this. Controller FriendList Help me to improve this. Thanks

Laravel Modal Not Returning Data

I am not sure why I am not getting value in Laravel controller from modal. Please help me find it out. But, I am using the same code for other modal and controller. It’s working, and it’s returning values in attribute without any issue. I am using Laravel 8 with php 8.1; Below is my codes. appHttpControllersAdminMpdController.php appModelsadminmpd.php routesweb.php Answer

Advertisement