Комментарии:
in the case whe we replace $timezones per models how can we displays all data ????????
Ответитьwhat is the name of the extension that type ["view:", "var_name:"] in -> "return view( view: 'auth.register', compact( var_name: 'timezones'));?
ОтветитьSimple and heplful :)
Greetings from Arrgentina!
thank you 💚
ОтветитьPlease update your browser...🙏🙏🙏
ОтветитьMore on this topic Teacher, please!
ОтветитьIt's not better to use Vue components instead?
ОтветитьWouldn't the more correct way be to create a component via artisan make:component instead of a simple blade?
Ответить@props(['options' => [], 'selected' => null, 'key' => 'id', 'value_key' => 'title', 'default' => 'Select...', 'disabled' => false])
<select {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge([
'class' => 'border-gray-300 dark:border-gray-700
dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500
dark:focus:ring-indigo-600 rounded-md shadow-sm mt-1 block w-full',
]) !!}>
<option value="">{{ $default }}</option>
@foreach ($options as $option)
<option {{ $selected && $selected == $option[$key] ? 'selected' : '' }} value="{{ $option[$key] }}">
{{ $option[$value_key] }}
</option>
@endforeach
</select>
This is how my component looks like...
Please make a video on how to start an Event/Method after a resource has been completely saved including it's relationships.
ОтветитьThanks
Ответитьit is good to refresh on basic aspects of laravel too, blade components is a good one
ОтветитьThank you for the efforts you put in making these videos. I'd would be great to show how to use the @old and @select to retain the selected value when the validation fails.
ОтветитьI began following you based on a friend's recommendation. Although my English skills are not proficient, your explanations are so clear, detailed, and step-by-step that I don't even need to rely on automatic translation. I can understand everything very clearly. Thank you!
ОтветитьThank you
ОтветитьSir, I have a question.
In Laravel validation can we stripe tags?
Case: I have build a application where I provide api. so I don’t have blade template. We can escape html and script tags in blade like {{}} this.
As, I have to give response in api, So i don't want to save html and script tag in database.
Is laravel has any solution for this.
Or In this case what will be your steps?
It was very useful!!!! thanks!
Ответить