olekturbo olekturbo 03.03.2018, 03:04:24 1 + #laravel #programowanie#php https://pastebin.com/4ueca7aBmam taka funkcje i zalozmy studenta o id = 3.Jak mam wyswietlic komunikat zeby nie bylo tylko Student has been removed a Student 3 has been removed?
andrew1985 andrew1985 03.03.2018, 08:02:53 2 + @Samsie: @olekturbo: Jeżeli obiekt jest czyszczony to zawsze można przepisać id do osobnej zmiennej przed deletem.
#php
https://pastebin.com/4ueca7aB
mam taka funkcje i zalozmy studenta o id = 3.
Jak mam wyswietlic komunikat zeby nie bylo tylko Student has been removed a Student 3 has been removed?
Komentarz usunięty przez autora
$id = $student->id;
$student->delete();
coś takiego