Skip to content

Tag: laravel-blade

Laravel pass collection to view

I’m trying to pass a collection to the view but I’m not getting anything. The page renders blank In the blade I have The result is Error: Trying to get property ‘anything’ of non-object From what I found this should work, please let me know what I`m doing wrong Thanks for your help Ans…

Blade Recursive, increase the depth for padding

I want to increase the depth int each time children are in a item so I can pad out the a tag. Below is my code and I assumed this would work, however the number stays at 1 even though I have got children within my one of the items within $items. sidebar.blade.php sidebar.items.blade.php SidebarItems.php Data:…

Laravel only one friend_id per user

I’m only starting with laravel and was wondering if anyone could help, I’ve created a friend_id and user_id from the database and have made a form in the view that adds the user_id to the friend_id (not sure what the terminology is for anything yet XD) everything working fine but each time I press…