Hi Dary, you're honestly a legend because you make good explanation videos but what I also like very much is that you show what for example each command actually does in depth and I and possibly other people appreciate this very much!
@codewithdary Жыл бұрын
Thank you so much :).
@AdrusMcpaketazo5 ай бұрын
Man, this is incredible. Thank you so much for this tutorial, it helped me a lot! I'm coming from Laravel and slowly detoxing from Eloquent.
@codewithdary5 ай бұрын
Thank you so much buddy 🙏🏽🫶
@najiali651 Жыл бұрын
You can’t imagine how you helped me with this project, you saved my life❤, I was looking for a solution to my mistake , thank you too much, I found at the last of video, how to hide pages ❤️❤️ I have question: can make a video about how to make admin page and allows admin to add , edit and delete?
@codewithdary Жыл бұрын
Thank you Najiali, its my pleasure. I won't be creating Symfony tutorials anytime soon but that's definitely a topic I will do once I start making it again :)
@d_sportello2 жыл бұрын
you made it easy for understanding, thanks!
@codewithdary2 жыл бұрын
Thank you :)
@najiali651 Жыл бұрын
You can’t imagine how you helped me with this project, I was looking for a solution to my mistake , thank you too much, I found at the last of video, how to hide pages ❤️❤️ I have question: can make a video about how to make admin page and allows admin to add , edit and delete?
@codewithdary Жыл бұрын
Thank you so much. I'm not going to make any Symfony content anytime soon.
@yurafedonyuk Жыл бұрын
man, u are a lifesaver! Huge props from Ukrainian web devs👍👍
@codewithdary Жыл бұрын
Thank you for your positivity Yura, much love from me to all Ukrainians watching
@mxdscientist2 жыл бұрын
This was a very well explained tutorial, well done.
@codewithdary2 жыл бұрын
Glad it was helpful Marouane.
@domjanzsoo26 күн бұрын
getting "No Symfony console detected to run "symfony console"" error when running symfony console command. Do I need to install it?
@uraljonjurayev18142 жыл бұрын
Thank you very well.⬆️✔️
@codewithdary2 жыл бұрын
Thank you too Uraljon!
@shashithasandunil94642 жыл бұрын
Thank you , sir
@codewithdary2 жыл бұрын
No worries!
@renatatworzydlo25612 жыл бұрын
Well done. Clear and understandable. I wanted to ask you: how to configure the roles in the roles column in database? Example: a user can be either operator, super operator, customer or super customer (as with fos bundle in previous versions). Thanks in advance!
@codewithdary2 жыл бұрын
Hi Renata. I just tried to explain it in my own words and I wasn't satisfied with it, so I found a good explanation on Symfony's official website: Instead of giving many roles to each user, you can define role inheritance rules by creating a role hierarchy: # config/packages/security.yaml security: # ... role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] Users with the ROLE_ADMIN role will also have the ROLE_USER role. Users with ROLE_SUPER_ADMIN, will automatically have ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH and ROLE_USER (inherited from ROLE_ADMIN). Usage // BAD - $user->getRoles() will not know about the role hierarchy $hasAccess = in_array('ROLE_ADMIN', $user->getRoles()); // GOOD - use of the normal security methods $hasAccess = $this->isGranted('ROLE_ADMIN'); $this->denyAccessUnlessGranted('ROLE_ADMIN');
@endofdays45858 ай бұрын
Hey Dary, i having a doubt actually. Its there any possibility to create an LoginFormType.php like the register one? Im actually trying this but the authentication its not working anymore with.
@skygrace8459 Жыл бұрын
thanks alot for this tut, i juste have a question; how should i proceed so users could login either the username or the email simultaneously ?? need help. thanks one more.
@najimelguennouni8732 жыл бұрын
thanks dary
@codewithdary2 жыл бұрын
You are welcome Najim :)
@draganjelic3549 Жыл бұрын
What I'm supposed to do if I want to improve this code in order to work with front-end part of API project?
@codewithdary Жыл бұрын
I don't really get it. Why do you need a Symfony project to work with the front-end of an API?
@user-mj9wm6dl1c Жыл бұрын
Tell me, pls: why all the properties of the User entity are generated as nullable ( private ?string $name = null)? And you don't... (I'm using Symfony 6.1)
@sebkl60982 жыл бұрын
Hey Dary, did u test the messages if the login failed? My error variable in the twig template is always null
@tomasreinert55112 жыл бұрын
Thank you Dary.
@codewithdary2 жыл бұрын
It’s Dary bro!! 🤣🤣🤣
@tomasreinert55112 жыл бұрын
@@codewithdary sorry 😂
@dominus6224 Жыл бұрын
3:05 dary, you really have to start living on de randje. Real men live on de randje of leven by not encrypting or hashing
@codewithdary Жыл бұрын
Hahahaha 😂😜👌
@gravityarm9240 Жыл бұрын
Whats better laravel or symfony?
@codewithdary Жыл бұрын
Depends..
@user-vb2zx6vj4c Жыл бұрын
I'm actually doing the same things you do in the video (i already have a User entity with fixtures that i have previously created) but when i try to login, it throws me an error "invalid credentials" even if the email and the password are the same in the user tables. Someone knows why? Thanks
@todorinchovski84966 ай бұрын
A bit late with the reply, but with a bit of debugging I found out that the authenticate method in LoginFormAuthenticator.php tries to get $email = $request->request->get('email', '') $request->request->get('password', '') but the info that comes in the POST is _username and _password, so if you change the variables, then it works.