Laravel Crash Course - Dealing with foreign key constraints

Поделиться
HTML-код
  • Опубликовано: 24 мар 2021
  • In this video we are going to see how to define foreign key column in when defining table schema using migration.

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

  • @yesno5286
    @yesno5286 Год назад

    dude... you went over all the problems that i had with my project with in the first 5 min.

  • @DooMprogrammer
    @DooMprogrammer 2 года назад +1

    Man! You're a savior! Thanks a lot!!!!!

  • @cuttysauce
    @cuttysauce 2 года назад +1

    Thanks. Your video was very helpful. I was missing a minor detail.

  • @kurdev101
    @kurdev101 7 месяцев назад

    Thank you , this video is so clear for understanding

  • @johantoni9187
    @johantoni9187 Год назад +1

    Thank you 😍
    I want to ask,
    Should i use relations in app\models?
    Like hasMany, belongsTo, etc ?
    Or i just set foreignKey only in database migrations?
    Then i can simply insert record data in livewire with App\Models\Data::create(..); ?

  • @saif6484
    @saif6484 2 года назад

    Thank you very much, I was having a problem creating a relationship and it was resolved after watching the video

    • @TutsPrime
      @TutsPrime  2 года назад

      Hi Saif,
      Glad to hear that the video help you

  • @Vrx-yp1eu
    @Vrx-yp1eu Год назад

    thank you I literally love you

  • @hedrobc8714
    @hedrobc8714 Год назад +1

    you dont need to delete the tables, use: php artisan migrate:fresh

  • @rickokodr--
    @rickokodr-- 11 месяцев назад

    thank u for this helpful video, i have question we should be rename the crate_table file ? and why ?

  • @jamalsiddique428
    @jamalsiddique428 2 года назад +1

    Very very helpful. You solved all of my errors

    • @TutsPrime
      @TutsPrime  2 года назад +1

      I'm happy to hear that the video help you solved your issues.

  • @bashircodes
    @bashircodes 2 года назад +1

    thanks, it helps me very much. my whole problem was migration dates

    • @TutsPrime
      @TutsPrime  2 года назад

      Glad to hear that my video help you :)

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

    Very helpful thanks

  • @essamal_agamy148
    @essamal_agamy148 2 года назад +1

    Thanks. Your video was very helpful.

    • @TutsPrime
      @TutsPrime  2 года назад

      You're welcome. I glad to hear that :)

  • @aymanebisdaoune2580
    @aymanebisdaoune2580 4 месяца назад

    thanks very helpful

  • @peanhead2543
    @peanhead2543 2 года назад +1

    thanks for the lessons, but how to delete the files in storage? the rows already deleted but the images files the storage are still there

    • @KL-es9bt
      @KL-es9bt 2 года назад

      unlink($file) // $file with path and filename

  • @duyilesamuel4188
    @duyilesamuel4188 Год назад

    God bless you bro

  • @susanthawarnapura
    @susanthawarnapura 2 года назад +1

    thanks

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

    thanks,

  • @BakriHmouda
    @BakriHmouda 2 года назад

    Thanks a lottttttt very well explained

  • @brindhanallasamy3466
    @brindhanallasamy3466 2 года назад

    simple and superb

  • @MdYousuf-sc1lt
    @MdYousuf-sc1lt Год назад

    thanks