β prev | next β
theman_behind 2020-12-07 21:43:39
req98 2020-12-07 21:43:19
how
I meant what u want to do?
theman_behind 2020-12-07 21:43:50
Printing or logging or what?
theman_behind 2020-12-07 21:44:04
If logging use json encode
theman_behind 2020-12-07 21:44:15
If printing use foreach
David_Vially 2020-12-07 21:58:08

I’m ok with the composer
req98 2020-12-07 21:58:34
theman_behind 2020-12-07 21:43:39
I meant what u want to do?
Actually I have a list of articles. And every article has a cat. When I want to save it, comes an err from that cat I choose
Ldrago003 2020-12-07 22:01:46
David_Vially 2020-12-07 21:58:08
I’m ok with the composer
now use youtube how to install laravel in your operating system also if using linux permission needed for bootstrap and storage folder
David_Vially 2020-12-07 22:02:33
Ldrago003 2020-12-07 22:01:46
now use youtube how to install laravel in your operating system also if using linux permission needed for bootstrap and storage folder
i’m using windows
Ldrago003 2020-12-07 22:03:26
use official as guide laravel document to install laravel with version you want
David_Vially 2020-12-07 22:03:41
Ok thanks
2020-12-07 23:13:31
Hello please I need SMTP people pleaseππ
req98 2020-12-07 23:19:13
req98 2020-12-07 23:19:48
req98 2020-12-07 23:20:19
req98 2020-12-07 23:21:43
I can’t save child category. It will get null when I save the data. What’s wrong??
My codes are in above pics
2020-12-07 23:31:59
Hello everyone need a very good laravel php developer to make some updates onto a laravel site
natghi2010 2020-12-08 00:17:54
req98 2020-12-07 23:21:43
I can’t save child category. It will get null when I save the data. What’s wrong??
My codes are in above pics
expects integer?
arthur_minasyan_96 2020-12-08 00:25:46
I need to build the database correctly. I have a blog post form which in turn has the ability to add multiple files, add multiple tags. Need to make polymorphic eloquent relation for files table and tags table and I need to advise.
Post table can have multiple files and multiple tags. But I have to use those two files and tags for other models as well.
How can I build this correctly?
NanoCellMusic 2020-12-08 00:26:51
How would i go about getting all models as a collection that are not attached to another model?
I have a relation of Many Lists to Many Items.
I need to get all Items that are not attached to a specific List
E.g: I have 30 items, 20 Items are attached to List 1, I need to get all the Items that are NOT attached to List 1
I was thinking of getting all Items and all Items attached to List 1 then iterating through Items and removing the Item from the collection if it matches and Item attached but this would be inefficient and i feel that there is a better way
Thanks in advanced for help π
NanoCellMusic 2020-12-08 01:44:53
Managed to figure it out:
$itemsnotinlist = Item::whereDoesntHave(‘lists’, function($q) use ($listid){
$q->where(‘list_id’, $listid);
})->inRandomOrder()->first();
natghi2010 2020-12-08 02:50:50
NanoCellMusic 2020-12-08 01:44:53
Managed to figure it out:
$itemsnotinlist = Item::whereDoesntHave(‘lists’, function($q) use ($listid){
$q->where(‘list_id’, $listid);
})->inRandomOrder()->first();
never knew there was a randomOrder method. thanks
NanoCellMusic 2020-12-08 02:52:47
natghi2010 2020-12-08 02:50:50
never knew there was a randomOrder method. thanks
Yah no worries. I only just sound out I can use functions in a eloquent query π
natghi2010 2020-12-08 02:53:32
NanoCellMusic 2020-12-08 02:52:47
Yah no worries. I only just sound out I can use functions in a eloquent query π
yeah i never consider that. let me try it
natghi2010 2020-12-08 02:53:47
$project->doAllTheWorkForMe()
req98 2020-12-08 07:34:07
natghi2010 2020-12-08 00:17:54
expects integer?
It’s int
Ldrago003 2020-12-08 07:50:31
req98 2020-12-07 23:19:13
@Backend98 use $request->categories ? $request->categories : [];
Ldrago003 2020-12-08 07:50:59
you are saying save null if found categories in your code i think
req98 2020-12-08 08:04:07
Ldrago003 2020-12-08 07:50:31
@Backend98 use $request->categories ? $request->categories : [];
I did it before like this. Look at the pic
req98 2020-12-08 08:05:48
Ldrago003 2020-12-08 07:50:59
you are saying save null if found categories in your code i think
That’s funny. All things are saved except this one
RayhanYulanda 2020-12-08 08:11:43
Hello i want to put number for the first column. How can i do that with laravel excel 3.1? https://github.com/Maatwebsite/Laravel-Excel/
GitHub – SpartnerNL/Laravel-Excel: π Supercharged Excel exports and imports in Laravel –
GitHubπ Supercharged Excel exports and imports in Laravel – GitHub – SpartnerNL/Laravel-Excel: π Supercharged Excel exports and imports in Laravel
RayhanYulanda 2020-12-08 08:12:44
Hello i want to put number for the first row. How can i do that with laravel excel 3.1?
dhenish 2020-12-08 09:01:01
Hlw ..how to api search in laravel
dhenish 2020-12-08 09:01:18
Please help me
2020-12-08 09:03:54
dhenish 2020-12-08 09:01:01
Hlw ..how to api search in laravel
hi,youtube and laravel document
dhenish 2020-12-08 09:04:44
How many keyword search in laravel ?
β prev | next β