Explanation:
Form: Use enctype="multipart/form-data" to handle file uploads.
- Blade with Alpine.js: For the image preview, Alpine.js listens for changes in the file input and updates the imgsrc data property.  
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
- This should now allow you to upload an image,preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views. 
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views. - Here is a frame video: 
- This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
- This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
| 1gj | hghjg | jgj | ghj | 
| ghj | gj | hgjh | gj | 
| gj | gj | gj | g | 
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
- Controller: Checks if a file is uploaded and stores it in the blogs directory under storage/app/public. You can access this via asset('storage/' . $imagePath) in your views.
This should now allow you to upload an image, preview it, and store it correctly when submitting the form.
 
        
