2,540 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.
@snapey Ok, thanks for the reply :)
@snapey Can you elaborate on why using the Form library is a bad idea?
@martinbean Thank you so much for your answer. Hopefully I'll be able to figure the rest out myself.
Thanks for replying.
@jlrdw Thanks for replying but I already understand how to get the filename from the upload. Maybe my question wasn't explained clearly enough.
When adding a new blog post (PostsController & Post Model), the form will have a drag & drop field to upload multiple images (UploadController / ImageController). Every image uploaded (via ajax) will return a filename, but where can I store that filename in the new blog post form, so that when the PostsController handles the new blog post it knows which filenames were uploaded?
Does that make more sense?
Started a new Conversation Store Filenames/URLs Of Images Uploaded Before Form Is Submitted.
What would be the best way to store/associate filenames or URLs with form data when adding a new record to a database?
As a basic example:
If I had a form for adding a new blog post with fields for title, content and images, where the images were uploaded using the likes of FilePond or Dropzone.js (drag and drop).
As each file gets uploaded (to S3 for example) how would one save/store the filename or URL so that when the forms is submitted that the new record also has references to all the images that were uploaded before the form was submitted?
Would you save the info in a hidden field on the form? Or in json? Or another way?
I appreciate your help.