D
D
Dmitry2018-07-22 16:41:38
Laravel
Dmitry, 2018-07-22 16:41:38

What is the best way to organize notifications on laravel?

Guys, tell me what do you use to notify users in laravel sites?
I found this package , according to the description - I like it. All connected.
Controller code:

<?php

namespace App\Http\Controllers\Root;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Notify;

class HomeController extends Controller
{
  public function test(){		
    notify()->info('Тест', 'Текст сообщения', 'smile-o');
    dump(notify());
    return view('root.home.test');
  }		
}

view file:
@include('notify::notify')
ok

Here is the result:
5b5488b5df89a582583601.png
but the given message is not displayed in the view. Transferred to the session, but not processed for some reason. Tell me, what could be the matter?
I am using laravel 5.6

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question