bro repo that you uplod on description is another tutorial that use Vich , when i make : migration ->> this will happen [Semantical Error] The annotation "@Vich\UploaderBundle\Mapping\Annotation\ Uploadable" in class App\Entity\Post does not exist, or could not be auto-l oaded . i need for this turtorial only , thanks
Oh i see what is going on now, The code i posted is the entire repository and for each video i made i create a commit for it, i think you just cloned the repository as it is which will give you the latest commit, what you need to do in your case is go back to the first commit, It's pretty easy all you have to do is get the commit hash (by doing git log you will get the whole list and just take the has of the first commit), and then just checkout that hash and run composer update and it will do everything for you automatically. This is actually my bad because i didn't mention that this is a certain commit of the repository, My apologies for this mate.
@Everyone !! If you cant find route /admin do : composer remove admin In composer.json file, add "easycorp/easyadmin-bundle": "^2.3" into "require" Then run: composer update
Could you have a video in the future where the configuration is made inside de php files, since I figured that easyadmin does not come with the config yaml file as it used to, but as far as I know, the configurations are done inside the crud controllers and the dashboard controller. cheers
Is it possible to use easy admin to create custom place in the dashboard, which allows adding graphs etc.? I know it's good for using it for entities, but not sure how good it is for custom things and design?
Hello guys. Please advice me some article when I can realise editing for example HOME page like title and ether data from pages on my Web site. Thank you.
hello, when I used php bin/console make:user , an error appear :In SecurityExtension.php line 307: Invalid firewall "main": user provider "users_in_memory" not found. how can I fix it ?
Hello there mate, The IDE is called phpstorm by jetbrains, it's really powerful when using JavaScript and php, if you have a student account you can get a year for free :)
@@redaxhu only if a company buys it; for individuals (which still can be used for commercial use even if you're not self-employed) it's about half, and has a nice monthly fee option with perpetual fallback licences.
Hey, I have a question, when I required admin, and console installed it , I do not know why It did not created /admin route, so I can not go to /admin. Do you have any solution?
You must make the dahsboard first. If you dont create the dashboard, you dont routing the /admin route php bin/console make:admin:dashboard And second command in terminal: php bin/console make:admin:crud
In Symfony 4 if you install the website skeleton it will I stall everything Including flex, I used flex to install this but I didn't install it explicitly .
Bro I am facing "Object of class App\Entity\User could not be converted to string" when I have reloaded after adding easy_admin: entities: # List the entity class name you want to manage - App\Entity\Post - App\Entity\Category - App\Entity\Tag - App\Entity\User on the easy_admin.yaml . I have added all post, category, tag in database but can't understand why this problem occurs.
In your User.php file add a public function called __toString() { return $this->username; } or return the email what ever string you want to be displayed in drop downs
Hmm this interesting, what terminal and shell are you using and what os? Also make sure that you're project folder after you come the projet, and that you have composer installed globaly.
I had the excact same issue and it took me 1 day to fix it. It's not that easy of a fix. I don't remember every step but I just googled the errors and followed the steps by the users. First off all you definitly need to install ckeditor but once you do that it may error aswell while trying to install ckeditor. If not, you good to go. If it does error, you'll need to install brew and use it to install something else which I found out by googling the errors. I wish u luck
@@paintertable5084 okey I rember the fix . Its really easy if you know the fix ^^. You need to install the friends maker bundle simply type composer require friendsofsymfony/ckeditor-bundle in the terminal in your project folder. After that you can do composer install
im new on git, and yes i dont know what u talking about bro how to get the first commit to grap this video only please help, and i wonder how symfony have twig template for admin page since i look for that template just found nothing
good tutorial, but Sir you are using PhpStorm but most of us are not using, so we cannot open other pages with a simple command and I have no idea where they are located. Example: Security file. thank you
Hello hicham, this is a problem I'm currently having in this channel, some people asking me to go very slow and show every step and every file I open to they can follow along, other dudes are saying I'm going waaay to slow and just wasting time with that, and I don't know what to do honestly because I tried both ways and I can't satisfy everyone it seems like. One note that might help is just check the name of the file above in the tabs bar.
Thanks for your quick response ; this is the content of security.yaml file under config/packages/security.yaml security: # symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: users_in_memory: { memory: null } firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: lazy provider: users_in_memory # activate different ways to authenticate # symfony.com/doc/current/security.html#firewalls-authentication # symfony.com/doc/current/security/impersonating_user.html # switch_user: true # Easy way to control access for large sections of your site # Note: Only the *first* access control that matches will be used access_control: - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/, roles: IS_AUTHENTICATED_FULLY }
@@OverSeasMedia thanks for your reply. but that was a silly mistake by me ... Which I got solution. Thanks once again. If I face any trouble I will disturb you again...
bro repo that you uplod on description is another tutorial that use Vich , when i make : migration ->> this will happen [Semantical Error] The annotation "@Vich\UploaderBundle\Mapping\Annotation\
Uploadable" in class App\Entity\Post does not exist, or could not be auto-l
oaded . i need for this turtorial only , thanks
Oh i see what is going on now, The code i posted is the entire repository and for each video i made i create a commit for it, i think you just cloned the repository as it is which will give you the latest commit, what you need to do in your case is go back to the first commit, It's pretty easy all you have to do is get the commit hash (by doing git log you will get the whole list and just take the has of the first commit), and then just checkout that hash and run composer update and it will do everything for you automatically.
This is actually my bad because i didn't mention that this is a certain commit of the repository, My apologies for this mate.
@Everyone !! If you cant find route /admin
do : composer remove admin
In composer.json file, add "easycorp/easyadmin-bundle": "^2.3" into "require"
Then run: composer update
Thank you for this answer, you saved my time.
@Dhla Djobbi thankyou for this mate , i wasted last night fighting with this and slept.
also i dont get this yaml file , i have security.yaml , routes .yaml but i cant get easy_admin.yaml
or the (project name).yaml
@@mussawaralyasah Same issue here man, i think i'm gonna spend the night awake for this problem
@@mussawaralyasah it was same case with me
Version 3 is different please make another of your lovely tutorials
Thank you mate :)
Best Symfony Channel EVER
Thanks man I really appreciate that :)
Best knowledge sharing
Always waiting for your awesome videos thanks :)
Thanks mate really appreciate that, and congratulations on two years on symfony connect :) .
Cheers mate :)
hello ,thks for your working , how can you do le type'toggle' on propriety :published ?
Hi thanks a lot, now it's time to customise the easy admin design based on another template pre prepared
That sounds like a great idea.
@@OverSeasMedia thanks a lot ;)
Could you have a video in the future where the configuration is made inside de php files, since I figured that easyadmin does not come with the config yaml file as it used to, but as far as I know, the configurations are done inside the crud controllers and the dashboard controller. cheers
Api Platform Admin is causing headache . Is it compatible to the Api Platform ?
Very nice tutorial. Thanks bro
Is it possible to use easy admin to create custom place in the dashboard, which allows adding graphs etc.? I know it's good for using it for entities, but not sure how good it is for custom things and design?
Hello guys. Please advice me some article when I can realise editing for example HOME page like title and ether data from pages on my Web site. Thank you.
hello, when I used php bin/console make:user , an error appear :In SecurityExtension.php line 307:
Invalid firewall "main": user provider "users_in_memory" not found.
how can I fix it ?
Hi! how to create login & reg pages in easyadmin style?
Hello bro, can show/hide entities with EasyAdminBundle depending on user's role?
Hi!
May I ask, what kind of editor did you used in this video?
thanks
Hello there mate,
The IDE is called phpstorm by jetbrains, it's really powerful when using JavaScript and php, if you have a student account you can get a year for free :)
@@OverSeasMedia thanks a lot, seems to be a really great piece of IDE, but after the university it costs 200€/y
that is a lot :D
Lol that's a lot indeed, well I guess eclipse is fine too :)
@@redaxhu only if a company buys it; for individuals (which still can be used for commercial use even if you're not self-employed) it's about half, and has a nice monthly fee option with perpetual fallback licences.
Excellent tutorial. Thank you!
Hey, I have a question, when I required admin, and console installed it , I do not know why It did not created /admin route, so I can not go to /admin. Do you have any solution?
You must make the dahsboard first. If you dont create the dashboard, you dont routing the /admin route
php bin/console make:admin:dashboard
And second command in terminal:
php bin/console make:admin:crud
@@delidag yeah but he says we dont need to make nothing like a router controller etc 5:44
In the official docs, it mentions Flex. Is it necessary? Because it is not in the video. Thanks.
In Symfony 4 if you install the website skeleton it will I stall everything Including flex, I used flex to install this but I didn't install it explicitly .
@@OverSeasMedia thanks so much
Bro I am facing "Object of class App\Entity\User could not be converted to string" when I have reloaded after adding
easy_admin:
entities:
# List the entity class name you want to manage
- App\Entity\Post
- App\Entity\Category
- App\Entity\Tag
- App\Entity\User
on the easy_admin.yaml . I have added all post, category, tag in database but can't understand why this problem occurs.
In your User.php file add a public function called __toString() { return $this->username; } or return the email what ever string you want to be displayed in drop downs
@@OverSeasMedia Thank you. Its working now
Hi,
When i clone the repository "easy-admin-demo" and make
composer install
Error append :
There are no commands defined in the "ckeditor" namespace.
Hmm this interesting, what terminal and shell are you using and what os? Also make sure that you're project folder after you come the projet, and that you have composer installed globaly.
@@OverSeasMedia OS: 4.15.0-24-generic GNU/Linux
here's another:
github.com/javiereguiluz/easy-admin-demo/issues/86
I had the excact same issue and it took me 1 day to fix it. It's not that easy of a fix. I don't remember every step but I just googled the errors and followed the steps by the users.
First off all you definitly need to install ckeditor but once you do that it may error aswell while trying to install ckeditor. If not, you good to go. If it does error, you'll need to install brew and use it to install something else which I found out by googling the errors.
I wish u luck
@@paintertable5084 okey I rember the fix . Its really easy if you know the fix ^^. You need to install the friends maker bundle
simply type composer require friendsofsymfony/ckeditor-bundle
in the terminal in your project folder.
After that you can do composer install
im new on git, and yes i dont know what u talking about bro how to get the first commit to grap this video only please help, and i wonder how symfony have twig template for admin page since i look for that template just found nothing
good tutorial, but Sir you are using PhpStorm but most of us are not using, so we cannot open other pages with a simple command and I have no idea where they are located. Example: Security file. thank you
Hello hicham, this is a problem I'm currently having in this channel, some people asking me to go very slow and show every step and every file I open to they can follow along, other dudes are saying I'm going waaay to slow and just wasting time with that, and I don't know what to do honestly because I tried both ways and I can't satisfy everyone it seems like. One note that might help is just check the name of the file above in the tabs bar.
Also most of the yaml files that I mention are inside the config folder , always look for them at that directory
Wow, thank you so much! I hope you will make a video for python django admin.
bro
where is the code that you promise to include for post, category, etc
Just updated the description :)
I've done this, but for some reason easy_admin isn't there and i can't find a solution to make it work.
This is amazing
Is the tutorial for Symfony 4.4?
Yes it should work with that as well, matter fact any minor version in symfony 4
i don't see fild easy_admin.yaml in symfony 5
Great
Thanks mate :)
i didnt see "easy_admin.yaml" anybody know ? please answer, i was search and tried the step but it still didnt appear ?
Command "make:user" is not defined. Why?
Maybe you need to install the maker bundle first, try running "composer req maker"
Do anyone get this error?
There are no configured encoders for the "security" extension.
Did you include the configuration of the encoder in the security yaml file?
Thanks for your quick response ; this is the content of security.yaml file under config/packages/security.yaml security:
# symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
users_in_memory: { memory: null }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: lazy
provider: users_in_memory
# activate different ways to authenticate
# symfony.com/doc/current/security.html#firewalls-authentication
# symfony.com/doc/current/security/impersonating_user.html
# switch_user: true
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: IS_AUTHENTICATED_FULLY }
make:user is showing error plz help me
What error are you getting ?
@@OverSeasMedia thanks for your reply.
but that was a silly mistake by me ... Which I got solution. Thanks once again. If I face any trouble I will disturb you again...
@@OverSeasMedia Hello brother when you do debug:router you get admin route u r I am not getting that ... why?? plz help me..
user:
name_property_path: 'Username'