if (information == 'Fash') {
alert(fash);
} else {
alert(SeeLater);
} else {
alert(`See you later Dr.${lastname}.`);
} else if (information == 'Fash ') {
alert(' Barry. ');
} else {
alert('No info today');
} else {
alert('Access is closed ');
}
$model = User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
]);
$user = new Book();
$user->user_id = $model->id;
$user->save();
return $model;
[not-group=5]
[add-favorites] <span title="Посмотреть позже">{favorites}</span> [/add-favorites]
[del-favorites] <span title="Убрать из списка">{favorites}</span> [/del-favorites]
[/not-group]
$array = ['green', 'purple', 'white', 'black', 'grey'];
foreach ($array as $value => $key) {
if ($key == 'green') $array[$value] = 'Значение';
}