Skip to content

Instantly share code, notes, and snippets.

View cchampou's full-sized avatar
🐣
Starting my journey with Komia!

Clément Champouillon cchampou

🐣
Starting my journey with Komia!
View GitHub Profile
@cchampou
cchampou / my-events.blade.php
Created September 17, 2022 09:12
Comment afficher une variable qui contient du HTML
<p class="mt-1 text-xs text-gray-400">
{!! $event->body !!}
</p>
$meetings = Meeting::whereIn('therapist_price_id', $prices)
->where('status', 2)
->orderBy('date')
->get();
$total = 0;
foreach ($meetings as $meeting)
{
$price_item = $meeting->therapist_price();
$validator = Validator::make($input, [
'current_password' => ['required', 'string'],
'password' => $this->passwordRules(),
])->after(function ($validator) use ($user, $input) {
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
$validator->errors()->add('current_password', __('The provided password does not match your current password.'));
}
});
if ($validator instanceof \Illuminate\Validation\Validator) {
$validator->validateWithBag('updatePassword');