Symfony 4 Tutorial: Easy admin bundle.

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 76

  • @kristyanlofrido9399
    @kristyanlofrido9399 5 років тому +1

    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

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      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.

  • @DhiaMagicien
    @DhiaMagicien 4 роки тому +6

    @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

    • @event-subscriber
      @event-subscriber 4 роки тому +1

      Thank you for this answer, you saved my time.

    • @mussawaralyasah
      @mussawaralyasah 4 роки тому +1

      @Dhla Djobbi thankyou for this mate , i wasted last night fighting with this and slept.

    • @mussawaralyasah
      @mussawaralyasah 4 роки тому +1

      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

    • @matteobalsotti
      @matteobalsotti 4 роки тому

      @@mussawaralyasah Same issue here man, i think i'm gonna spend the night awake for this problem

    • @Redflagvet
      @Redflagvet 3 роки тому

      @@mussawaralyasah it was same case with me

  • @cauxxx2454
    @cauxxx2454 3 роки тому

    Version 3 is different please make another of your lovely tutorials

  • @LaravelJutsu
    @LaravelJutsu 5 років тому +5

    Best Symfony Channel EVER

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      Thanks man I really appreciate that :)

  • @rohitashsharma482
    @rohitashsharma482 3 роки тому

    Best knowledge sharing

  • @Shambhu384-l9h
    @Shambhu384-l9h 5 років тому +1

    Always waiting for your awesome videos thanks :)

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      Thanks mate really appreciate that, and congratulations on two years on symfony connect :) .
      Cheers mate :)

  • @rikielzz4023
    @rikielzz4023 3 роки тому

    hello ,thks for your working , how can you do le type'toggle' on propriety :published ?

  • @slshshsos3757
    @slshshsos3757 5 років тому +1

    Hi thanks a lot, now it's time to customise the easy admin design based on another template pre prepared

  • @Question_Authority
    @Question_Authority 3 роки тому

    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

  • @Y2Kvids
    @Y2Kvids 5 років тому +1

    Api Platform Admin is causing headache . Is it compatible to the Api Platform ?

  • @delidag
    @delidag 4 роки тому

    Very nice tutorial. Thanks bro

  • @helloworld7796
    @helloworld7796 4 роки тому

    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?

  • @disconnect3763
    @disconnect3763 2 місяці тому

    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.

  • @syrinemahmoud4087
    @syrinemahmoud4087 4 роки тому +1

    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 ?

  • @typepeak
    @typepeak 4 роки тому

    Hi! how to create login & reg pages in easyadmin style?

  • @bolovy6093
    @bolovy6093 5 років тому

    Hello bro, can show/hide entities with EasyAdminBundle depending on user's role?

  • @redaxhu
    @redaxhu 4 роки тому +1

    Hi!
    May I ask, what kind of editor did you used in this video?
    thanks

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      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
      @redaxhu 4 роки тому

      @@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

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      Lol that's a lot indeed, well I guess eclipse is fine too :)

    • @thinkEdem
      @thinkEdem 3 роки тому

      @@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.

  • @fzr69
    @fzr69 4 роки тому

    Excellent tutorial. Thank you!

  • @Lifepl-co9do
    @Lifepl-co9do 4 роки тому +1

    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?

    • @delidag
      @delidag 4 роки тому +1

      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

    • @flaviopeplekaj1520
      @flaviopeplekaj1520 4 роки тому

      @@delidag yeah but he says we dont need to make nothing like a router controller etc 5:44

  • @marcosbernabe3561
    @marcosbernabe3561 5 років тому +1

    In the official docs, it mentions Flex. Is it necessary? Because it is not in the video. Thanks.

    • @OverSeasMedia
      @OverSeasMedia  5 років тому +1

      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 .

    • @marcosbernabe3561
      @marcosbernabe3561 5 років тому +1

      @@OverSeasMedia thanks so much

  • @mdshahadathossain7955
    @mdshahadathossain7955 4 роки тому +2

    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.

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому +1

      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

    • @mdshahadathossain7955
      @mdshahadathossain7955 4 роки тому

      @@OverSeasMedia Thank you. Its working now

  • @tomazovEV
    @tomazovEV 4 роки тому +1

    Hi,
    When i clone the repository "easy-admin-demo" and make
    composer install
    Error append :
    There are no commands defined in the "ckeditor" namespace.

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      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.

    • @tomazovEV
      @tomazovEV 4 роки тому

      @@OverSeasMedia OS: 4.15.0-24-generic GNU/Linux
      here's another:
      github.com/javiereguiluz/easy-admin-demo/issues/86

    • @paintertable5084
      @paintertable5084 4 роки тому

      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

    • @janikcodes
      @janikcodes 4 роки тому +1

      @@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

  • @kristyanlofrido9399
    @kristyanlofrido9399 5 років тому

    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

  • @hichamabboud9672
    @hichamabboud9672 4 роки тому

    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

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      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.

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      Also most of the yaml files that I mention are inside the config folder , always look for them at that directory

  • @tark6392
    @tark6392 4 роки тому

    Wow, thank you so much! I hope you will make a video for python django admin.

  • @kristyanlofrido9399
    @kristyanlofrido9399 5 років тому +1

    bro
    where is the code that you promise to include for post, category, etc

  • @matteobalsotti
    @matteobalsotti 4 роки тому

    I've done this, but for some reason easy_admin isn't there and i can't find a solution to make it work.

  • @ghaziexpert8444
    @ghaziexpert8444 4 роки тому

    This is amazing

  • @ahmedchouihi
    @ahmedchouihi 3 роки тому

    Is the tutorial for Symfony 4.4?

    • @OverSeasMedia
      @OverSeasMedia  3 роки тому

      Yes it should work with that as well, matter fact any minor version in symfony 4

  • @nguyennhat8284
    @nguyennhat8284 3 роки тому

    i don't see fild easy_admin.yaml in symfony 5

  • @mfouakiehibrahim42
    @mfouakiehibrahim42 5 років тому

    Great

  • @Redflagvet
    @Redflagvet 3 роки тому

    i didnt see "easy_admin.yaml" anybody know ? please answer, i was search and tried the step but it still didnt appear ?

  • @rivaldyramadhan495
    @rivaldyramadhan495 4 роки тому

    Command "make:user" is not defined. Why?

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому +1

      Maybe you need to install the maker bundle first, try running "composer req maker"

  • @ahmedchouihi
    @ahmedchouihi 3 роки тому

    Do anyone get this error?
    There are no configured encoders for the "security" extension.

    • @OverSeasMedia
      @OverSeasMedia  3 роки тому

      Did you include the configuration of the encoder in the security yaml file?

    • @ahmedchouihi
      @ahmedchouihi 3 роки тому

      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 }

  • @ummehanyarozshandaanny2846
    @ummehanyarozshandaanny2846 4 роки тому

    make:user is showing error plz help me

    • @OverSeasMedia
      @OverSeasMedia  4 роки тому

      What error are you getting ?

    • @ummehanyarozshandaanny2846
      @ummehanyarozshandaanny2846 4 роки тому

      @@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...

    • @ummehanyarozshandaanny2846
      @ummehanyarozshandaanny2846 4 роки тому

      @@OverSeasMedia Hello brother when you do debug:router you get admin route u r I am not getting that ... why?? plz help me..

  • @billimed4588
    @billimed4588 4 роки тому

  • @bylkaamazigh813
    @bylkaamazigh813 5 років тому

    user:
    name_property_path: 'Username'