Upload Product Data to Database Table in Laravel | Laravel E-Commerce Project Tutorial for Beginners

  Рет қаралды 5,411

Web Tech Knowledge

Web Tech Knowledge

Күн бұрын

Пікірлер: 20
@backshift-q2m
@backshift-q2m 2 ай бұрын
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!
@smesam4174
@smesam4174 7 ай бұрын
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
@kebasouane9813
@kebasouane9813 6 ай бұрын
thank your . how to calculate price based on quantity
@thiobakti2159
@thiobakti2159 4 ай бұрын
Thanks
@ninoangelolawan9272
@ninoangelolawan9272 6 ай бұрын
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
@WebTechKnowledge
@WebTechKnowledge 6 ай бұрын
did you delete any file or remove any code from web.php
@jerryouma2363
@jerryouma2363 5 ай бұрын
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.
@WebTechKnowledge
@WebTechKnowledge 5 ай бұрын
Did you give the name field in the select tag and also value field in the options?
@jerryouma2363
@jerryouma2363 5 ай бұрын
Thanks for replying Yes i did
@jerryouma2363
@jerryouma2363 5 ай бұрын
Finally it worked after clearing cache
@heathledger6769
@heathledger6769 6 ай бұрын
why this problem ? Call to a member function move() on null
@Struggling.to.be_momin
@Struggling.to.be_momin 4 ай бұрын
same error please any solution????
@Struggling.to.be_momin
@Struggling.to.be_momin 4 ай бұрын
This worked for me $image->move(public_path('products'), $image_name);
@DevSagar0143
@DevSagar0143 5 ай бұрын
hello sir
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 154 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 26 МЛН
Goodbye IMGUI, hello sph-i-am-gui
1:56:25
sphaerophoria
Рет қаралды 52
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 208 М.