rename $task->title into $task->name
This commit is contained in:
@@ -99,7 +99,7 @@ class TasksController extends Controller
|
|||||||
$task->users()->attach($id);
|
$task->users()->attach($id);
|
||||||
|
|
||||||
$notification = Notification::create([
|
$notification = Notification::create([
|
||||||
'content' => "Vous avez été assigné à la tâche {$task->title} de l'événement {$task->event->name}."
|
'content' => "Vous avez été assigné à la tâche {$task->name} de l'événement {$task->event->name}."
|
||||||
]);
|
]);
|
||||||
$notification->users()->attach($user->id);
|
$notification->users()->attach($user->id);
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ class TasksController extends Controller
|
|||||||
if (Carbon::now()->lessThanOrEqualTo($task->end)) {
|
if (Carbon::now()->lessThanOrEqualTo($task->end)) {
|
||||||
if ($participants->isNotEmpty()) {
|
if ($participants->isNotEmpty()) {
|
||||||
$notification = Notification::create([
|
$notification = Notification::create([
|
||||||
'content' => "La tâche '{$task->title}' pour l'événement '{$task->event->name}' a été supprimée. Vous n'y participez donc plus."
|
'content' => "La tâche '{$task->name}' pour l'événement '{$task->event->name}' a été supprimée. Vous n'y participez donc plus."
|
||||||
]);
|
]);
|
||||||
$notification->users()->attach($participants->pluck('id'));
|
$notification->users()->attach($participants->pluck('id'));
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,7 @@ class TasksController extends Controller
|
|||||||
|
|
||||||
foreach ($participants as $user) {
|
foreach ($participants as $user) {
|
||||||
$notification = Notification::create([
|
$notification = Notification::create([
|
||||||
'content' => "La date de la tâche {$task->title} de l'événement {$task->event->name} à été mis à jour. Cette tâche aura maintenant lieu du {$formatedTaskStart} au {$formatedTaskEnd}."
|
'content' => "La date de la tâche {$task->name} de l'événement {$task->event->name} à été mis à jour. Cette tâche aura maintenant lieu du {$formatedTaskStart} au {$formatedTaskEnd}."
|
||||||
]);
|
]);
|
||||||
$notification->users()->attach($user->id);
|
$notification->users()->attach($user->id);
|
||||||
broadcast(new TaskDateUpdated(
|
broadcast(new TaskDateUpdated(
|
||||||
@@ -296,7 +296,7 @@ class TasksController extends Controller
|
|||||||
if ($user && Carbon::now()->lessThanOrEqualTo($task->end)) {
|
if ($user && Carbon::now()->lessThanOrEqualTo($task->end)) {
|
||||||
$task->users()->detach($id);
|
$task->users()->detach($id);
|
||||||
$notification = Notification::create([
|
$notification = Notification::create([
|
||||||
'content' => "Vous avez été désassigné de la tâche {$task->title} de l'événement {$task->event->name}."
|
'content' => "Vous avez été désassigné de la tâche {$task->name} de l'événement {$task->event->name}."
|
||||||
]);
|
]);
|
||||||
$notification->users()->attach($user->id);
|
$notification->users()->attach($user->id);
|
||||||
broadcast(new VolunteerUnassignedFromTask(
|
broadcast(new VolunteerUnassignedFromTask(
|
||||||
|
|||||||
Reference in New Issue
Block a user