Great tutorial, but I want to point out a few important aspects. The example did not sufficiently handle input validation from the user. I know this is an admin dashboard, but it's good practice to validate inputs everywhere in your application. I recommend using Form Request classes or the validate() method to ensure that all inputs meet the expected rules (e.g., required, string, image, etc.). This helps prevent security issues like SQL injection and XSS (cross-site scripting). Additionally, I would suggest uploading files to storage/app/public/products instead of directly to /public. This way, you can better manage access permissions and file organization. By using the command php artisan storage:link, you can create a symlink that allows secure access to files via URL without exposing them directly in the public directory. This approach is much more efficient in Laravel 11 and helps adhere to best security practices. Thanks for the video!
@smesam41747 ай бұрын
Hello, I have been following you on the ecommerce project until reached the upload products. The title and category get added but the price, qty, and description do not. I could not find where the mistake was
@kebasouane98136 ай бұрын
thank your . how to calculate price based on quantity
@thiobakti21594 ай бұрын
Thanks
@ninoangelolawan92726 ай бұрын
Hello, everything was going well with my code until recently my login credentials were invalid but is present in the database and when i try opening the register part, its 404 not found, Still not sure where the error/mistake is
@WebTechKnowledge6 ай бұрын
did you delete any file or remove any code from web.php
@jerryouma23635 ай бұрын
Hello sir i have been following this tutorial and everything has been going on well i want to thank you for that but an issue after uploading the product, in the database category name and the image are reading Null i don't know where the problem might be. If you know where the problem might be kindly help me.
@WebTechKnowledge5 ай бұрын
Did you give the name field in the select tag and also value field in the options?
@jerryouma23635 ай бұрын
Thanks for replying Yes i did
@jerryouma23635 ай бұрын
Finally it worked after clearing cache
@heathledger67696 ай бұрын
why this problem ? Call to a member function move() on null
@Struggling.to.be_momin4 ай бұрын
same error please any solution????
@Struggling.to.be_momin4 ай бұрын
This worked for me $image->move(public_path('products'), $image_name);