Skip to content
Advertisement

Laravel Undefined variable: messages

I am getting an undefined variable error after I have added this into my controller:

JavaScript

I have a table with a details button the idea being it goes to a more advanced view and detailed to the specific message, I am having issues with it as it’s giving me an Undefined variable: message (View: C:UsersBradley KirklandDownloadsrcs-masterrcsresourcesviewsmttext.blade.php)

JavaScript

and my full controller is:

JavaScript

Advertisement

Answer

This is right syntax to pass variable to use compact. Please Try this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement