2017-04-11 5 views

답변

0

app/Notifications 디렉토리에 알림 클래스를 만들려면 먼저 make:notification artisan 명령을 사용해야합니다. 그러면이 클래스 내부에서 via() 메서드를 찾을 것이다.

Notifiable 모델은 이름이 "Notifiable"인 모델이 아니지만 Notifiable 특성을 사용하여 모든 모델이 Notifiable 모델 (인스턴스에 알림을 보내려는 모델) 일 수 있습니다.

use Illuminate\Notifications\Notifiable; 

use App\Notifications\MyNotificationClass; 

class MyModel extends Model 
{ 

    use Notifiable; 

    .... 

}