256 Kilobytes

Answers in Frameworks | By Some Guy

Published 7 months agoSun, 02 Dec 2018 03:44:19 -0800

161 views, 0 RAMs, and 2 comments

Tags: Laravel, Laravel Collections

Profile Photo - Some Guy Some Guy
🗎 3224 🗨 41 🐏 31
Subscriber

Title.

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 7 months ago 🕓 Posted at 02 December, 2018 03:44 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - Univa Univa
🗎 0 🗨 175 🐏 5
Author

To determine if the collection is empty you can do any of the following:

@if(!$result->isEmpty())
         // $result is not empty
@else
        // $result is empty
@endif

or can also use

if (!$result) { }
if ($result) { } 
if (!$result->isEmpty()) { }
Download more RAM. 🐏 ⨉ 0 Posted by Univa 1 month ago

Edit History

• [2019-06-01 9:20 PDT] Univa (1 month ago)
• [2019-06-01 9:20 PDT] August R. Garcia (1 month ago)
🕓 Posted at 01 June, 2019 09:20 AM PDT

Hello.

Profile Photo - Scuffed Dog Scuffed Dog Horse racing tipster Horseshoe Bay
🗎 0 🗨 53 🐏 31
Quality User

Thank you Univa, you're a very smart gentleman and also a nice companion in life.

Users Who Have Downloaded More RAM:
eeeeeeee (1 month ago)
🐏 ⨉ 1
Posted by Scuffed Dog 1 month ago 🕓 Posted at 03 June, 2019 09:12 AM PDT

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.