Is it possible to have access to the eager loaded table inside a whereHas?

|
snehalkadwe 2020-12-10 05:47:28
Hello anyone has used csv.thephpleague in laravel or anyone has tutorial how to use it
lucasectos 2020-12-10 05:53:49
Guys, I’m having a problem that I don’t know how to deal with

I need to import (upload) a file with 6648 lines, each line being a record with different data that will populate an array in PHP

When I import the file with about 400 lines for example, it takes 2.5 minutes to return the array with the data

Doing a basic calculation, if it takes 2.5 minutes to read the file with 400 lines, it will take 40 minutes to import 6648

However, when I try to import the same file but with the 6648 lines, it keeps making a request to the endpoint infinitely and does not return anything

I don’t know if it would be a unique and exclusively timeout problem, if any configuration in php.ini would solve it or something similar

If someone can give a light, it’s being hard and the deadline is close

dhenish 2020-12-10 07:21:53
shaildark 2020-12-09 17:54:40
i got the normal logic but not factorial and Fibonacci

Ok bro

RJ_0fficial 2020-12-10 09:34:04
Any kind person here can help me generate my SQL database by using php artisan migrate
2020-12-10 09:35:58
RJ_0fficial 2020-12-10 09:34:04
Any kind person here can help me generate my SQL database by using php artisan migrate

What’s your problem? Why can’t you do it yourself?

2020-12-10 09:36:16
laravel.com
RJ_0fficial 2020-12-10 09:38:34
2020-12-10 09:35:58
What’s your problem? Why can’t you do it yourself?

Pro exception error

Komalvgarg 2020-12-10 10:45:24
2days work, budget 5000Rs. Php laravel works – anybody there who is available urgently and can do needful. project: Basket24seven.com
2020-12-10 11:13:21
Hi guys can i use voyager and make:auth for different purpose ?
Jadidi_82 2020-12-10 11:26:08
Ldrago003 2020-12-07 19:12:23
please share Screenshot of kernel.php inside app/Console

laravel_discuss-61967.jpg

Saidu 2020-12-10 14:35:49
Hello guyz
I’m building an e-commerce site with laravel and vue but I’m having some trouble with it.

{{Cart::session(auth()->id())->get($item->id)->getPriceSum()}}

My cart view is Vue component and I don knw how to get this above πŸ‘†πŸ½πŸ‘†πŸ½πŸ‘†πŸ½to work with it

DesolatorMagno 2020-12-10 14:57:48
Fernando 2020-12-09 21:31:52

Why use Laravel if you are going to end using raw everywhere?

kevinpita 2020-12-10 15:02:42
What should I use/do if I want to have the phone number encrypted in the DB? I thought about opengpg js but would prefere PHP solution
DesolatorMagno 2020-12-10 15:03:46
2020-12-09 21:54:03
Hi. Is it possible to have access to the eager loaded table inside a whereHas?

with(‘Tags’)
->whereHas(‘Tags’, function ($query) {
// Want the access to the Tags table
$query->where(‘Tags.id’, ‘id’); // returns an error
})

Of course you can, is just that you are doing it really bad, just read the documentation for where has, I am sure there is a couple of working examples there.

2020-12-10 15:04:23
DesolatorMagno 2020-12-10 15:03:46
Of course you can, is just that you are doing it really bad, just read the documentation for where has, I am sure there is a couple of working examples there.

I couldn’t solve the problem. I didn’t find anything there

2020-12-10 15:04:42
I needed some joins, and of course it’s not possible in eloquent orm
DesolatorMagno 2020-12-10 15:04:59
If you say so.
ikudratov 2020-12-10 15:38:50
Saidu 2020-12-10 14:35:49
Hello guyz
I’m building an e-commerce site with laravel and vue but I’m having some trouble with it.

{{Cart::session(auth()->id())->get($item->id)->getPriceSum()}}

My cart view is Vue component and I don knw how to get this above πŸ‘†πŸ½πŸ‘†πŸ½πŸ‘†πŸ½to work with it

You have to use laravel passport, and store session as cookies

2020-12-10 15:46:07
When i have a multi function for reply email how i can found it
2020-12-10 16:32:13
hey there ..can i get a book with a good content for laravel beginners level?
kevinpita 2020-12-10 16:35:06
2020-12-10 16:32:13
hey there ..can i get a book with a good content for laravel beginners level?

Laracasts

fatihsyams 2020-12-10 17:31:34
laravel_discuss-61992.jpg
in laravel 7, it is why ?
MrSrv7 2020-12-10 19:04:34
Anyway to remove tail wind from Jetstream in Laravel 8?
MrSrv7 2020-12-10 19:04:48
I need to use bootstrap
DesolatorMagno 2020-12-10 19:05:23
Rewrite the views.
RayhanYulanda 2020-12-10 19:53:57
Hello i want to #ask about yajra datatable laravel with relationship
I have tried many times but still can’t work

I have tried this for the column
Column::make(‘jenis_pensiuns’)->data(‘jenis_pensiuns.nama’)->name(‘jenis_pensiuns.nama’)And this
Column::make(‘jenisPensiuns’)->data(‘jenisPensiuns.nama’)->name(‘jenisPensiuns.nama’),
I have tried this for the return
return $model->newQuery()->with(‘jenisPensiun’);
and this
$model = Pensiun::with(‘jenis_pensiuns’)->select(‘jenis_pensiuns.*’);
and this too
$model = Pensiun::with(‘jenisPensiun’)->select(‘jenisPensiun.*’);
and this too
return $model->newQuery()->with(‘jenisPensiun’);

The method for relationship is
public function jenisPensiun(){
return $this->belongsTo(AppModelsJenisPensiun::class);
}Still getting the error 😒
Btw the nama works well when i dd

natghi2010 2020-12-10 19:59:24
MrSrv7 2020-12-10 19:04:34
Anyway to remove tail wind from Jetstream in Laravel 8?

Might be a way by modifying the composer file

natghi2010 2020-12-10 20:24:06
MrSrv7 2020-12-10 19:04:34
Anyway to remove tail wind from Jetstream in Laravel 8?

Upgrade to Laravel 8? Without Jetstream or Route ChangesYouTube
In this video, I want to answer a common question I get: “How to upgrade to Laravel 8 but without Jetstream or routing changes”. Watch me perform the Laravel 7 project upgrade to Laravel 8.

Related links:
– Auth in Laravel 8: Fortify and Laravel UI (without Jetstream) https://www.youtube.com/watch?v=NuGBzmHlINQ
– Laravel 8 Routing: Important Change You Need to Know https://www.youtube.com/watch?v=MfE1tnMG6fE
– Laravel 8 Upgrade Guide: https://laravel.com/docs/8.x/upgrade
– Laravel 8 Release Notes: https://laravel.com/docs/8.x/releases

Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter

– – – – –
Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
Enroll in my Laravel courses: https://laraveldaily.teachable.com

2020-12-10 20:27:31
https://laravel.com/docs/8.x/validation#rule-required-if
MrSrv7 2020-12-10 21:15:36
natghi2010 2020-12-10 20:24:06
https://www.youtube.com/watch?v=mPBkYdrOEdQ&t=395s

No i need Jetstream like i need those templates etc but just bootstrap instead of tailwind

2020-12-10 21:55:35
Is there anyways to run a function when an object of a model is created?
JeevaniSM 2020-12-10 21:56:19
amirvalhalla 2020-12-07 08:01:53
Minus 1 means return is invalid so if you’re checking something and then it failed you can return – 1

Thanx

Saeed_RB92 2020-12-10 22:06:40
hi. who can help me to find a laravel internship plan ?
amirhb51 2020-12-10 22:17:17
Saeed_RB92 2020-12-10 22:06:40
hi. who can help me to find a laravel internship plan ?

Hey, what kinds of internship?
Could you more explain about it

Saeed_RB92 2020-12-10 22:23:14
amirhb51 2020-12-10 22:17:17
Hey, what kinds of internship?
Could you more explain about it

i learned laravel but i want to be in a project to more experience and to have a portfolio. no diff thats projet maybe a online shop or anything else

|