PHP code example of desolatormagno / laravel-msg

1. Go to this page and download the library: Download desolatormagno/laravel-msg library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

desolatormagno / laravel-msg example snippets

 bash
$ php artisan vendor:publish --tag=laravel-msg
 php
use DesolatorMagno\LaravelMsg\Message as Msg;
.
.
.
Msg::success('Bienvenido usuario');

Msg::success("El mensaje fue enviado a $usuario", 'Acción Exitosa');
 php
Msg::success('Bienvenido usuario');
 php
Msg::error('Usuario eliminado');
 php
Msg::info('Nuevo mensaje de Pedro', 'Notificacion');