Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Personalizar notificaciones en Laravel.
Devscamp profile imageAriel Mejia
Ariel Mejia forDevscamp

Posted on

     

Personalizar notificaciones en Laravel.

Dejo este pequeño tip para personalizar las plantillas de las notificaciones en Laravel.

Primero debemos publicar los archivos de las notificaciones:

phpartisanvendor:publish--tag=laravel-notifications
Enter fullscreen modeExit fullscreen mode

Ahora en "resources/views/vendor", ahí podremos editar la plantilla del markdown.

Personalizar los colores

Si necesito personalizar los colores u otras reglas CSS de la plantilla, Laravel nos provee un comando para publicar estos assets:

phpartisanvendor:publish--tag=laravel-mail
Enter fullscreen modeExit fullscreen mode

Ahora en "resources/views/vendor/mail/html/themes/default.css" podremos personalizar los estilos de CSS.

Algunos tips:

  • Para personalizar el enlace del header:
.headera{color:#3d4852;font-size:19px;font-weight:bold;text-decoration:none;}
Enter fullscreen modeExit fullscreen mode
  • Para personalizar el boton "primary":
.button-primary{background-color:#2d3748;border-bottom:8pxsolid#2d3748;border-left:18pxsolid#2d3748;border-right:18pxsolid#2d3748;border-top:8pxsolid#2d3748;}
Enter fullscreen modeExit fullscreen mode

También puedes personalizar la acción de "error" y "success", justo abajo.

Espero sea de utilidad, saludos!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

More fromDevscamp

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp