How to Use Gates In Laravel | Laravel Authentication Course | Laravel Mailing Course

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 25. 07. 2024
  • This video shows you how to use Gates in Laravel. The examples will be very basic but this could be an opener if you want to use roles inside your application - Learn more about THE best PHP Framework. Laravel provides a simple email API & drivers for sending email via SMTP.
    📚 New Udemy Course
    If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
    đŸ“Č Let’s plan a meeting
    Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
    💌 Newsletter
    Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
    đŸ”„ Resources
    - PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
    - TikTok: / codewithdary
    - Instagram: / codewithdary
    - Twitter: / codewithdary
    - Blog: blog.codewithdary.com/
    - Newsletter: newsletter.codewithdary.com/
    - Patreon: www.patreon.com/user?u=30307830
    - GitHub: github.com/codewithdary
    Want to learn more?
    - Courses: / @codewithdary
    📋 Table of Content
    00:00 - Introduction
    01:12 - Adding a new column to users table
    04:12 - How to define a gate (Allows)
    08:08 - How to define a gate (Denies)
    #laravel #authentication #mailing #laravel8 #gates

Komentáƙe • 48

  • @codewithdary
    @codewithdary  Pƙed 2 lety +2

    LETS CONNECT THROUGH INSTAGRAM.
    instagram.com/codewithdary

  • @davidkahdze3474
    @davidkahdze3474 Pƙed rokem +1

    thank you very my friend i like your lessons

  • @someutubchannel69
    @someutubchannel69 Pƙed 3 lety +2

    Good Morning Dary!
    First to thank you for your awesome tutorials!
    đŸ˜ŽđŸ‘đŸœđŸ‘đŸœ

  • @abelmarkos5753
    @abelmarkos5753 Pƙed 3 lety +3

    The best channel with laravel content

  • @manto7
    @manto7 Pƙed 2 lety +1

    Thanks a lot man. You are great

  • @dev_jeongdaeri
    @dev_jeongdaeri Pƙed 3 lety +2

    always thanks! dary!!! your content is like a gold mine!!!

  • @muzika5001
    @muzika5001 Pƙed 2 lety +2

    Hi Dary, Great tutorial regarding gates. Just seems some things can be simplified based on laravel documentation. For example, in controller just check if user is authorized, because 403 error will follow automatically in case "no access". I recommend to use ($this->authorize('admin-only')); Also Gates can be simplified to something like this Gate::define('admin-only', fn (User $user) => $user->is_admin); What do you think? Less code and do the same.

  • @jorgeramonramirezsaenz6136
    @jorgeramonramirezsaenz6136 Pƙed 3 lety +1

    Great content!, I'm sharing your videos to my devs, thanks a lot

  • @mofidsky
    @mofidsky Pƙed 3 lety +1

    I just want to say big thanks for your tuts

    • @codewithdary
      @codewithdary  Pƙed 3 lety +1

      No worries man. Thank you for your support!

  • @dr.d303
    @dr.d303 Pƙed 2 lety +1

    Thankyou dary! you doing greate stuff!

  • @danceban9166
    @danceban9166 Pƙed 3 lety +3

    Just learning php and laravel at the moment and Im so glad I found your channel, it really helps a lot! Can you also explain in a video more on the permissions for the roles?
    Thank you!

    • @codewithdary
      @codewithdary  Pƙed 3 lety +1

      Thank you Dan! I might (probably will) do a project where I'll add it.

  • @WhiteSiroi
    @WhiteSiroi Pƙed rokem

    thank you so much, very helpful

  • @dex.cabigting
    @dex.cabigting Pƙed 3 lety

    Hands on!!

  • @techsuniversity7386
    @techsuniversity7386 Pƙed 3 lety +1

    Awesome...thank you 😍

  • @OnlyJavascript
    @OnlyJavascript Pƙed 3 lety +1

    Yes..Soon I will contribute my part.

  • @jeremytice2714
    @jeremytice2714 Pƙed 3 lety +1

    Great stuff. Would like to see a Laravel backend for a Auth and API for a Flutter Mobile App.

  • @oreefy
    @oreefy Pƙed 3 lety

    Great boss

  • @behappy8585
    @behappy8585 Pƙed 3 lety +1

    Love your Videos and Explanation is awesome...Please make a video on mini laravel project that covers roles and permissions and realtionships

    • @codewithdary
      @codewithdary  Pƙed 3 lety

      Great suggestion!

    • @behappy8585
      @behappy8585 Pƙed 3 lety

      @@codewithdary Thank you when will we get this good news?? :D

  • @ylven3658
    @ylven3658 Pƙed rokem

    thanks

  • @lijinv674
    @lijinv674 Pƙed 3 lety +1

    Can you please explain the use of mailgun
    1. How to send message through mailgun in Laravel and how to test it in postman.

    • @codewithdary
      @codewithdary  Pƙed 3 lety +2

      I'm going to use Mailtrap in the next video first.

  • @ARSHADKHAN-hc6pb
    @ARSHADKHAN-hc6pb Pƙed 2 lety +1

    Please make project on how to use multiple roles in our application

  • @3axap_777_
    @3axap_777_ Pƙed 2 lety +1

    I am you subscribe from Russia !!! Verify content !!! To be !