This is the documentation for
v9 but the latest version is
v10
.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
The media library does not restrict what kinds of files may be uploaded or associated with models. If you are accepting file uploads from users, you should take steps to validate those uploads, to ensure you don't introduce security vulnerabilities into your project. Laravel has a rule to validate uploads based on MIME type or file extension.