How To Send Notifications In Laravel | What Are Notification | Laravel Authentication & Mailing

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

КОМЕНТАРІ • 48

  • @codewithdary
    @codewithdary  2 роки тому +1

    LETS CONNECT THROUGH INSTAGRAM.
    instagram.com/codewithdary

  • @EddieMao
    @EddieMao 3 місяці тому

    Clearly explained! thanks a lot!

  • @mharis2880
    @mharis2880 2 роки тому +1

    typing sound is so cool 😀

  • @sameera-dananjaya-wijerathna
    @sameera-dananjaya-wijerathna 2 роки тому +1

    Awesome explanation !

  • @saifbagmaru7596
    @saifbagmaru7596 2 роки тому +1

    hey which extension do you use to beautify that command line of yours in blue and yellow strip which alongside shows your branch

    • @codewithdary
      @codewithdary  2 роки тому

      Hi, please follow the following two links:
      ohmyz.sh/
      github.com/ohmyzsh/ohmyzsh/wiki/Themes
      Or you could watch a video where I do it myself:
      ua-cam.com/video/bKUNHPvhsF0/v-deo.html

  • @harhukam
    @harhukam 3 роки тому +1

    very useful for me. thanks.

  • @nielsvandervlist3520
    @nielsvandervlist3520 2 роки тому +1

    Hi Dary, thanks for your videos. It sounds like you're dutch :) Can you make a video about broadcasting notifications?

    • @codewithdary
      @codewithdary  2 роки тому

      Damn another one who found out ;)
      I have a tutorial about Broadcasting, but maybe you can combine both videos or your end result? ua-cam.com/video/UwB5z6u7vt8/v-deo.html&t

  • @sidney-richards
    @sidney-richards 2 роки тому +1

    amazing stuff

  • @hadidagher9443
    @hadidagher9443 3 роки тому +1

    hay Dary, I appreciate what you do

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

      How did you define your tokens/API keys? Are you talking about a bearer token?

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

      @@codewithdary yes bearer tokens
      -after installing sanctum and migration
      -I added on User Model the following:
      use Laravel\Sanctum\HasApiTokens;
      use HasApiTokens; // as a trait
      - Api/AuthController.php [ register, login (issue token), logout(revoke tokens) ]
      - protecting api.php routs with sanctum middleware
      should I assign abilities to the tokens or gates with the correct permission on the (controllers, requests, resources) should be enough, like this:
      abort_if(Gate::denies('post_show'), Response::HTTP_FORBIDDEN, '403 Forbidden');

  • @manto7
    @manto7 3 роки тому +1

    Thanks man

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

    Thank you for this video

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

    Thanks man, you're the best

  • @tayyabshahzad9933
    @tayyabshahzad9933 2 роки тому

    I have created a mailable class & also I have attached a view with dynamic data. how can I fire email using notification with my own email template along with data which I am passing through my controller?

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 3 роки тому +1

    Hi Dary,
    Is it possible to flash messages from notifications? I want to flash a message to the session when a queued job fails. But I do not know how to.

    • @codewithdary
      @codewithdary  3 роки тому +1

      You need to return a message from your controller like this:
      Session::flash('message', 'This is a message!');
      Session::flash('alert-class', 'alert-danger');
      Then you can print it out inside your view like this:
      @if(Session::has('message'))
      {{ Session::get('message') }}
      @endif

    • @user-tt6nc6mo7k
      @user-tt6nc6mo7k 3 роки тому

      @@codewithdary I need the session::flash to be called when a job fails though. How would my controller know when a job has failed.

  • @rantunakrak6384
    @rantunakrak6384 3 роки тому +1

    helpfull

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

    Hi! How can I change the design of notification? anyway, thanks a lot for the video

    • @codewithdary
      @codewithdary  3 роки тому +2

      First you need to publish the notification package’s resources
      php artisan vendor:publish --tag=laravel-notifications
      php artisan vendor:publish --tag=laravel-mail
      The colors and style are controlled by the CSS file in resources/views/vendor/mail/html/themes/default.css

  • @DogBreakfast
    @DogBreakfast 3 роки тому +6

    Thanks but there is no such things like "Fake Aids" in Laravel, just "facades" :)

  • @anthonynnabude7826
    @anthonynnabude7826 3 роки тому +1

    How do you config the email channel

  • @SathishKumar-hj9rc
    @SathishKumar-hj9rc 3 роки тому +1

    hai possible to send mail with image using laravel notification

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

      ua-cam.com/video/jsZuz1q87xs/v-deo.html

  • @SayaWRT
    @SayaWRT 2 роки тому

    I have an error with routeNotificationfor()
    What wrong?

  • @toyly2820
    @toyly2820 Рік тому

    you should specify that video is bout email notification

    • @codewithdary
      @codewithdary  Рік тому

      You can send notifications of everything. I decided to send a email notification, anything else works in the same exact way

    • @toyly2820
      @toyly2820 Рік тому

      @@codewithdary i was looking for broadcast notifications running away from everyone explaining email one, so i gave it a chance with hope it would be something different but you can imagine my reaction. Anyway thank you for your videos. I watch them a lot.

  • @karymelopez8345
    @karymelopez8345 2 роки тому +1

    Hi! I don't know if someone can help me figure out why I get this error: Class 'App\Http\Controllers\TestEnrollment' not found