2,590 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 Code To Upload Audio
If it says
variable undefined it means the
$audio = ... line is never triggered.
You should check why the condition in the if statement is returning false.
Also, if I understand correctly this code could be triggered when there is no audio file uploaded. In that case you should pass something else to the
create method since
$audio is currently undefined.
Commented on Build A Following
I saw your tweet on doing something similar with Livewire.
Would be cool to see a video on that.
Replied to Pdf File Not Downloading
To which method does
$logFile->path point? Also, are you sure that URL is correct?
Use Laravel Notifications with the database driver. When the page load you check for unread notifications and show them.
There is actually a video about this on Laracasts.
Replied to How To Update Cookies At Laravel 5.6
Maybe you could do
Cookie::queue() in a Service Provider?
Replied to Removing A Config Entry For A Test
This is great. Thanks!
Started a new Conversation Removing A Config Entry For A Test
I'm adding a feature to an existing package which will add a new config key/value. Current users don't have this item since this record doesn't exist yet.
To make sure this is not a breaking change I want to test the package when the record is not set.
app('config')->set('shield.enabled', null); sets the enabled key in the shield config file to null but doesn't remove the key from the config entirely, it only changes the value.
How do I unset a config record?
$trainings->paginate($limit) returns a collection. You can then add your attribute to the collection and return it.
$trainings = $trainings->paginate($limit); $trainings->put('custom_attribute', 'Custom Attribute'); return $trainings;