Closed HDVinnie closed 7 years ago
updated OP
@HDVinnie I don't think that this has anything to do with the package. Is there something in your other controllers, base controller, or view composer that is passing through $pages
? I'm assuming whatever is doing that in other parts of your app isn't happening in the new MessageController
. You could also do some additional checks for $pages
in the view.
I'm going to close this ticket for now, but feel free to ask questions if you need more help.
I am trying to incorporate this into my existing laravel application running laravel 4.2
I followed the instructions to a "T" here: https://github.com/cmgmyr/laravel-messenger/tree/v1 No errors where thrown. I have loaded the example Controllers, Views and used the Routes method used in Routes example. Only exceptions was editing the views to use @extends('layout.default') instead of default @extends('layout.master')
My Routes now looks like so
Now my site url is http://unit3d.hdinnovations.xyz
So i try http://unit3d.hdinnovations.xyz/messages to access the laravel-messenger but keep getting
Undefined variable: pages (View: /home/UNIT3D/app/views/layout/default.blade.php) (View: /home/UNIT3D/app/views/layout/default.blade.php)
default.blade.php looks like so:
This error only shows via these new route links for laravel messenger. Error is not displayed anywhere else on my site as the pages variable works.
What am I blindly missing and doing wrong?