No video

Creating Laravel Blade Component: Step-By-Step

  Рет қаралды 27,063

Laravel Daily

Laravel Daily

Күн бұрын

Let's take an example Blade component x-text-input from Laravel Breeze and create a new similar one x-input-select.
Official docs: laravel.com/do...
Full course lesson "User Timezone in Registration": laraveldaily.c...
- - - - -
Support the channel by checking out my products:
- My Laravel courses: laraveldaily.c...
- Laravel QuickAdminPanel: quickadminpane...
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: us11.campaign-...
- My personal Twitter: / povilaskorop

Пікірлер: 39
Жыл бұрын
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!
@notpowder5831
@notpowder5831 7 ай бұрын
From Indonesia?
@1234matthewjohnson
@1234matthewjohnson Жыл бұрын
it is good to refresh on basic aspects of laravel too, blade components is a good one
@DanielFrostable
@DanielFrostable 8 ай бұрын
Thank you. I was following a linked in course and the aspect of setting up the carrying of attributes was not delved into. Seeing your solution helped me to understand 🙏
@DanielPoliFabro
@DanielPoliFabro 10 ай бұрын
this man is simply incredible!!!! tks Povilas Korop
@mahmudsulemansheikhwunnam3580
@mahmudsulemansheikhwunnam3580 Жыл бұрын
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.
@LaravelDaily
@LaravelDaily Жыл бұрын
Something to consider, adding to my to-do list.
@scuraluis
@scuraluis Жыл бұрын
Simple and heplful :) Greetings from Arrgentina!
@NickEnchev
@NickEnchev 5 ай бұрын
Amazing tutorial, thank you!
@vcodev108
@vcodev108 Жыл бұрын
It was very useful!!!! thanks!
@G.M.Can.
@G.M.Can. 4 ай бұрын
When u doing something looks so cool and things working as i want. But i don't understand and i need to check another tutorial. I don't know, maybe i'm stupid. Thanks for the video.
@ValerjanV
@ValerjanV Жыл бұрын
thank you 💚
@chalewtesfaye
@chalewtesfaye Жыл бұрын
Thank you
@GergelyCsermely
@GergelyCsermely Жыл бұрын
Thanks
@pedramkatanchi5415
@pedramkatanchi5415 Жыл бұрын
Please make a video on how to start an Event/Method after a resource has been completely saved including it's relationships.
@LaravelDaily
@LaravelDaily Жыл бұрын
Not sure what is the problem there. In Controller, after calling save() or create() on model, dispatch the Event. Search for events/listeners on my channel.
@judelamberang4345
@judelamberang4345 7 ай бұрын
Is it possible for dynamic event if selected option is chosen? i.e opt1 is selected show dynamic inputs
@LaravelDaily
@LaravelDaily 7 ай бұрын
That would require JavaScript or Livewire
@withtresor
@withtresor Жыл бұрын
in the case whe we replace $timezones per models how can we displays all data ????????
@mahmoudreda1083
@mahmoudreda1083 Жыл бұрын
what is the name of the extension that type ["view:", "var_name:"] in -> "return view( view: 'auth.register', compact( var_name: 'timezones'));?
@LaravelDaily
@LaravelDaily Жыл бұрын
It's phpstorm by default
@Raysierer
@Raysierer Жыл бұрын
Wouldn't the more correct way be to create a component via artisan make:component instead of a simple blade?
@LaravelDaily
@LaravelDaily Жыл бұрын
Personal preference
@bmtamim7818
@bmtamim7818 Жыл бұрын
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?
@LaravelDaily
@LaravelDaily Жыл бұрын
Not sure I understand what exactly you want to strip, could you provide real example with data for request and response?
@bmtamim7818
@bmtamim7818 Жыл бұрын
@@LaravelDaily Here is the example: User input: { "comment": "alert('hacked')", } Validation in laravel: $request->validate([ 'comment'=> ['required','string'] ]); Saved In the database: Comment::create([ 'user_id'=>Auth::id(), 'comment' => $request->input('comment') ']); Now, the comment will save in the database with the (alert('hacked')) tags, I want to stripe_tags or htmlspecialchars() Is there laravel has system to do it in validation for example: $request->validate([ 'comment'=> ['required','string','safe'] ]); If not, What will be your approach in this case. Note: As I mentioned we can prevent it into blade template or we can stripe the tags in api resource response. For this I have to do this manually. So, my case I don't want to save (alert('hacked')) tags in database like this executable. Because, it saved like this maybe hacker can perform XSS attack Thanks sir
@L4Festa
@L4Festa Жыл бұрын
​@@bmtamim7818 If you don't want to do it "manually", then I think HTMLPurifier does exactly what you need.
@LaravelDaily
@LaravelDaily Жыл бұрын
It depends on which level you want to strip. I would probably do it here in your code: Comment::create([ 'user_id'=>Auth::id(), 'comment' => strip_tags($request->input('comment')) ']);
@bmtamim7818
@bmtamim7818 Жыл бұрын
@@LaravelDaily Thanks a lot sir, BTW, Laravel daily is a part of my daily life. I was switching much, You are the only reason I am still with laravel and working on some good projects.❤️
@ramanshrestha5970
@ramanshrestha5970 Жыл бұрын
can you do course on youtube for dev ops too?
@LaravelDaily
@LaravelDaily Жыл бұрын
No, I'm not planning to dive into dev ops any time soon, want to stick to Laravel.
@Sahrokh
@Sahrokh Жыл бұрын
@raman Dev Ops is HUUUGE! It's a job on it's own. I am just dipping my toes into it and it's endless.
@Vinicius-xn5gm
@Vinicius-xn5gm Жыл бұрын
It's not better to use Vue components instead?
@LaravelDaily
@LaravelDaily Жыл бұрын
If you have dynamic behavior for JavaScript then maybe yes
@kushalgupta2377
@kushalgupta2377 Жыл бұрын
Please update your browser...🙏🙏🙏
09.  Create Layout Component - Laravel 11 tutorial for beginners.
7:46
Route [verification.resend] not defined #laravel  9
7:35
Parlons Digital
Рет қаралды 654
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 14 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
Become a PRO at Using Components in Laravel
32:51
Code With Dary
Рет қаралды 36 М.
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 83 М.
Laravel Blade Components: Two Examples - Laravel Breeze/UI
15:34
Laravel Daily
Рет қаралды 36 М.
Bro, do you even TDD?
3:27
Laravel Daily
Рет қаралды 2,7 М.
Creating a Keycloak theme with MUI
1:02:06
Joseph Garrone
Рет қаралды 516
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 139 М.
Slots | Laravel Blade Components
13:06
AngelJay Academy
Рет қаралды 8 М.
LARACON EU 2024 // TAYLOR OTWELL :: LARAVEL UPDATE
1:10:48
Laracon EU
Рет қаралды 54 М.
Laravel: Avoid Try-Catch In Every Method (What To Do Instead)
4:45
Laravel Daily
Рет қаралды 31 М.
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН