How to generate scaffold with Infyom Laravel Generator

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • #generator #scaffold #crud #laravel #infyomlaravelgenerator
    Generate a scaffold (CRUD) quickly via infyOm Larvel Generator.
    the official document is here labs.infyom.co...
    Please Like and Subscribe. This will really boost my confidence and encourage me to make more and more videos.
    Thanks
    Shailesh. Ladumor

Комментарии • 46

  • @studyandentertainment581
    @studyandentertainment581 4 года назад +1

    a wonderful tutorials, thank you so much!!

  • @LOMBOist
    @LOMBOist 4 года назад +1

    Awesome tool !

  • @jaldeepkachhad4236
    @jaldeepkachhad4236 4 года назад +1

    Good...

  • @rayhanyulanda
    @rayhanyulanda 3 года назад

    Hi, i have problem. I need to make relation in model. If i make the relation in model, how to call it in my controller with base repository template?

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  3 года назад

      You need to create seprate function in your repository. Base repository provide default methods.

    • @rayhanyulanda
      @rayhanyulanda 3 года назад

      @@LaravelPackageTutorial so i can't call it from model? Should i put the relation in repository?

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  3 года назад

      @@rayhanyulanda you need declare on model and use in query in repository.

    • @rayhanyulanda
      @rayhanyulanda 3 года назад

      @@LaravelPackageTutorial i dont get it. I have declare it in model, but how to use it in repository? Is there tutorial you make for example using base repository template? Because i just see category tutorial which is get the relation from model not from repository

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  3 года назад

      yes, let me share example with you

  • @erickwakye4491
    @erickwakye4491 4 года назад

    Class 'App\Models\User' not found error when i click the add new button on the post form.
    please assist

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  4 года назад

      Are you used select table users?

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  4 года назад

      Check view composer file and change name space in use statement

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  4 года назад

      Use App\User instead of App\Models\User in use statement

    • @erickwakye4491
      @erickwakye4491 4 года назад

      @@LaravelPackageTutorial Hello, in which controller or model please?

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  4 года назад

      go to App/Providers directory. open ViewServiceProvider file.
      check use statement. i think it should be use App\User;

  • @yacinedia237
    @yacinedia237 3 года назад

    Hello ! Thanks for this amazing tutorial. You did a good job, keep going ! Please, how to add a field with db_type = enum and html_type=select. I wanted to make a To-Do app and I need a "status" field with the options "Done" and "To-Do".

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  3 года назад

      Its easy. Please just refer migration doc of laravel.

    • @LaravelPackageTutorial
      @LaravelPackageTutorial  3 года назад

      Also, we have options tutorial (inpit guide). So you can watch it and generate it with generator

    • @yacinedia237
      @yacinedia237 3 года назад

      @@LaravelPackageTutorial Thanks for the reply ! I will try it. I also had another problem : I have watched your tutorial "How to generate CRUD with datatables..." but at the end the output I get is the same as the Post model that you did in your previous video. I don't understand where the problem is, I have followed exactly what you did in the video.

    • @yacinedia237
      @yacinedia237 3 года назад

      when I typed the command php artisan infyom:scaffold Article, it even generated the view datatables_actions.blade.php. But we don't have the same output in the browser, my output is just like for a basic scaffolding.

    • @yacinedia237
      @yacinedia237 3 года назад

      I don't speak english very well, I really hope you understand

  • @saravanabavansubbarayalu353
    @saravanabavansubbarayalu353 3 года назад

    Infoym command not found pls help