β prev | next β
natghi2010 2021-01-31 17:35:20
2021-01-31 17:34:03
If it’s something like XML, I recommend dom-crawler package. It’s great.
https://packagist.org/packages/symfony/dom-crawler
thanks will try
natghi2010 2021-01-31 17:36:32
natghi2010 2021-01-31 17:36:42
2021-01-31 17:35:06
Honestly didn’t get what you mean lol I’ve seen combo boxes just in desktop gui programs.
this lol
2021-01-31 17:37:57
natghi2010 2021-01-31 17:36:32
It has nothing to do with Laravel π€·ββοΈ The only thing you get in backend is an HTTP request.
And how we handle that? Laravel validation!
natghi2010 2021-01-31 17:38:56
2021-01-31 17:37:57
It has nothing to do with Laravel π€·ββοΈ The only thing you get in backend is an HTTP request.
And how we handle that? Laravel validation!
ok
2021-01-31 17:39:22
natghi2010 2021-01-31 17:36:32
If you want something to be set by default, you’ve got to check each item when you’re iterating through your options
2021-01-31 17:43:18
Something like:
<select>
@foreach($categories as $category)
<option {{ $post->category->id == $category->id }} ? ‘selected’ : null></option>
@endforeach
</select>
natghi2010 2021-01-31 17:43:27
2021-01-31 17:39:22
If you want something to be set by default, you’ve got to check each item when you’re iterating through your options
which is what i hate π
natghi2010 2021-01-31 17:44:20
i wanted to do something like this
2021-01-31 17:44:29
natghi2010 2021-01-31 17:43:27
which is what i hate π
Yeah. It’s a bit messy. And there wil be executed so many if conditions
natghi2010 2021-01-31 17:46:29
<option value=”1″ title=”{{$category->id}}” onLoad=”this.value == {{$category->id}} ? this.attr(‘selected’,true) : null”>{{$category->name}}</option>
natghi2010 2021-01-31 17:47:22
2021-01-31 17:43:18
Something like:
<select>
@foreach($categories as $category)
<option {{ $post->category->id == $category->id }} ? ‘selected’ : null></option>
@endforeach
</select>
imagine having an html of countries and trying to do this
natghi2010 2021-01-31 17:47:34
you have to make a table etc
natghi2010 2021-01-31 17:47:44
I say no thank you
2021-01-31 17:48:55
natghi2010 2021-01-31 17:46:29
<option value=”1″ title=”{{$category->id}}” onLoad=”this.value == {{$category->id}} ? this.attr(‘selected’,true) : null”>{{$category->name}}</option>
I just wanted to say it may be done using js, but it will make the code messy too lol
But yours seems good if can be done
natghi2010 2021-01-31 17:49:15
2021-01-31 17:48:55
I just wanted to say it may be done using js, but it will make the code messy too lol
But yours seems good if can be done
no i just reliased, its retarded
natghi2010 2021-01-31 17:49:30
you have to write on load for every static value
2021-01-31 17:50:45
natghi2010 2021-01-31 17:47:22
imagine having an html of countries and trying to do this
If you’re worried about the performance or something, using eager loading it’s nothhing.
2021-01-31 17:50:58
As you may know only loops effect the O(n)
natghi2010 2021-01-31 17:51:07
2021-01-31 17:50:45
If you’re worried about the performance or something, using eager loading it’s nothhing.
no not that
natghi2010 2021-01-31 17:51:29
I guess the best way is to make tables
2021-01-31 17:52:43
If you found a better way to set a default value, let me know. I was searching about it once π
Mit Kum 2021-01-31 18:03:31
Any one can. send proper way to fallow to install passport in laravel 7 please ππ
w3lifer 2021-01-31 18:22:24
Mit Kum 2021-01-31 18:03:31
Any one can. send proper way to fallow to install passport in laravel 7 please ππ
composer require laravel/passport
ad2030w 2021-01-31 19:53:17
How to using Laravel Tampete help meπ
Djuraev_Oybek 2021-01-31 20:01:13
Hi everyone.
How to make a live broadcast on the site
w3lifer 2021-01-31 20:08:24
Djuraev_Oybek 2021-01-31 20:01:13
Hi everyone.
How to make a live broadcast on the site
https://laravel.com/docs/8.x/broadcasting
Djuraev_Oybek 2021-01-31 20:20:52
w3lifer 2021-01-31 20:08:24
https://laravel.com/docs/8.x/broadcasting
ππ thank u bro
w3lifer 2021-01-31 20:27:01
Djuraev_Oybek 2021-01-31 20:20:52
ππ thank u bro
U are welcome π
StanleyMasinde 2021-01-31 20:44:38
w3lifer 2021-01-31 20:08:24
https://laravel.com/docs/8.x/broadcasting
I don’t think this is it
AMIT 2021-01-31 21:09:05
After Vue.js I tried Laravel 8 with Inertia+Tailwind+Svelte.js stack and it is amazing, much easier than using vue.js and much faster.
2021-01-31 21:13:49
How to reset laravel passport
2021-01-31 21:17:41

Am using correct client id and client secret. Why it is saying invalid credentials
Batu157 2021-01-31 21:19:41
2021-01-31 21:17:41
Am using correct client id and client secret. Why it is saying invalid credentials
Turn lights on dude
2021-01-31 21:20:15
Batu157 2021-01-31 21:19:41
Turn lights on dude
Zoom it low phone camera quality
β prev | next β