Member Since 4 Years Ago
3,915 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Replied to Database
Yes. of course. But you'll have the overhead of encryption and decryption every time you store or retrieve data.
If you're storing sensitive data about something then it might even be a legal requirement. But in other cases, do you really need that overhead?
Replied to Database
That depends on what data you're storing.
Replied to Store Business Hours Of A Company
Do you really need to store them in a database?
Replied to Getting A Record Where There Is Only One
Yes, otherwise it'll return a collection with just one item in it.
Replied to Lookups/ENUMS
I've used that package before and it's very good. But I've also just created classes that are effectively just dictionaries of consts and their values. Either is a good solution. depending on how sophisticated you need to be.
Replied to Support For Indian Debit Cards
Not sure that's a Laravel issue. More of a payment provider thing.
Replied to Routes
Try putting the route above the "any" route. Routes get parsed top to bottom.
I'd do the checks as early as possible. There's no point in firing off things that don't need to be fired, even if they're not going to do anything because of a condition.
Replied to Should Eloquent Be In My Controller Or Model
Don't worry about how many files you're creating. If your app is likely to grow and become more sophisticated over time, you'll be thankful that you took a more organised approach.
Repositories are great!
Replied to HOw Where To Include Robot.txt File
For a standard Laravel app, in the public folder.
Carbon docs are here ...
Replied to Custom Route Model Binding, Good Or Bad?
It sounds you like you need some middleware to control who can edit what.
This looks like a pretty common use case though so there might be something out there already.
Go to config/logging.php and change the default to "single".
Beware though, the file could get VERY VERY large VERY quickly.