My question is how can i relationship this pivot table to in groups model?

|
Ajesh 2021-03-17 07:59:19
laravel_discuss-73657.jpg

Kamalwebdev 2021-03-17 08:07:59
Ajesh 2021-03-17 07:57:42
Hii, new to laravel

I have a project in my localhost(xampp) named new_web(in htdocs)

Created virtual host in Windows and trying open project in http://new_web.test

But through this url it lists only folders inside localhost.bit i can use from http://new_web.test/new_web/public
Where it loads correctly

I need to get this contents from http:// new_web.test domain..

Help pls 😊😊

Use laragon

rootkings 2021-03-17 08:40:23
Hey guys, i have an two table. One of them is groups table and other table is pivot table the name is group_assets (id, group id, image, video). My question is how can i relationship this pivot table to in groups model?
w3lifer 2021-03-17 08:44:01
rootkings 2021-03-17 08:40:23
Hey guys, i have an two table. One of them is groups table and other table is pivot table the name is group_assets (id, group id, image, video). My question is how can i relationship this pivot table to in groups model?

https://laravel.com/docs/8.x/eloquent-relationships#retrieving-intermediate-table-columns

Yasser 2021-03-17 08:44:19
How can l make form registration fo tow page ??
Yasser 2021-03-17 08:47:23
Admin
User
rootkings 2021-03-17 08:50:54
w3lifer 2021-03-17 08:44:01
https://laravel.com/docs/8.x/eloquent-relationships#retrieving-intermediate-table-columns

Yes i know that but my question is how can i defined my table name the docs dont detail about that.

uzkurama 2021-03-17 09:27:25
Hi everybody! I have issue, problem with Factory with Relationships

$inventory = Inventory::all()->random();
$details = OrderDetails::factory();
$markets = OrdersMarkets::factory()->count(2);
$inventories = OrdersInventories::factory()->count(2);
$orders = Orders::factory()
->has($details->count(2)
->hasAttached(
$inventories, [‘inventory_id’ => $inventory->id], ‘inventories’
)
->hasAttached(
$markets, [‘market_id’ => $inventory->market_id], ‘markets’
), ‘order_details’
)
->count(10000)
->create();
}

All I did was by documentation, but I’m getting error order_details_id doesn’t have default value. What’s wrong with my code, please help.

Thanks in advance

Azad Akhtar 2021-03-17 09:38:13
I am getting 1 issue..
Application not found
Azad Akhtar 2021-03-17 09:39:07
laravel_discuss-73669.jpg

Azad Akhtar 2021-03-17 09:39:21
Please guide me…
Moses Ejim 2021-03-17 09:41:29
Azad Akhtar 2021-03-17 09:39:07

Are you sure you imported “Application”?

Azad Akhtar 2021-03-17 09:43:50
No
Azad Akhtar 2021-03-17 09:44:02
How to import. This one
Moses Ejim 2021-03-17 09:46:31
You would have to import any class you are using
Moses Ejim 2021-03-17 09:48:18
You should have something like
use AppModelsApplication at the top of your file… That is if “Application” is a model
Azad Akhtar 2021-03-17 09:59:56
I have created Application in models folder .
Azad Akhtar 2021-03-17 10:00:10
Than again showing error not fiund
Azad Akhtar 2021-03-17 10:30:33
Not resokved…
ktmsulaim 2021-03-17 11:24:39
Azad Akhtar 2021-03-17 09:39:07

Seems some core files missing…consider re installation

Azad Akhtar 2021-03-17 11:25:19
I am totally confused .
Azad Akhtar 2021-03-17 11:25:47
I have created fresh project and.
After generated composer init file
Azad Akhtar 2021-03-17 11:26:25
It’s again showing Kerbal.php not found… It is available in http folder
focalfossa20 2021-03-17 11:55:18
laravel_discuss-73687.jpg
How to convert the auth name, email and phone to object in laravel?
Moses Ejim 2021-03-17 12:13:25
focalfossa20 2021-03-17 11:55:18
How to convert the auth name, email and phone to object in laravel?

It is already an object. Just get the authenticated user object.
$user = Auth::user()

focalfossa20 2021-03-17 12:22:50
Moses Ejim 2021-03-17 12:13:25
It is already an object. Just get the authenticated user object.
$user = Auth::user()

okay thanks

focalfossa20 2021-03-17 12:23:44
Azad Akhtar 2021-03-17 11:25:47
I have created fresh project and.
After generated composer init file

please share you’re screenshot for the error

Boss_meet 2021-03-17 12:56:50
Laravel package for login with apple ??
Boss_meet 2021-03-17 12:57:08
Php version below 7.3
Ahmed Γ‡elik 2021-03-17 13:54:42
Severusxyz 2021-03-17 02:29:57
Cross origin, Firewall.

How can I solve this problem

TheGuyi 2021-03-17 14:23:57
laravel_discuss-73694.jpg
I NEED HELP!!
i am trying to only capture the created_at time stamp but it is also capturing the updated_at time-stamp. how do i solve this
TheGuyi 2021-03-17 14:25:50
TheGuyi 2021-03-17 14:23:57
I NEED HELP!!
i am trying to only capture the created_at time stamp but it is also capturing the updated_at time-stamp. how do i solve this

laravel_discuss-73697.jpg
this is how my store function is in controller

TheGuyi 2021-03-17 14:26:48
laravel_discuss-73699.jpg
my MYSQL DB : trigger
foulla_sam 2021-03-17 15:10:15
TheGuyi 2021-03-17 14:26:48
my MYSQL DB : trigger

This may help you
https://stackoverflow.com/questions/29886497/how-to-only-use-created-at-in-laravel/36043796

How to only use created_at in LaravelStack Overflow
I want only use created_at , how to do it?

I know:

This can custom timestamps name

const CREATED_AT = ‘created’;
const UPDATED_AT = ‘updated’;
This can disable timestamps

public $timestamps = …

rootkings 2021-03-17 15:27:36
focalfossa20 2021-03-17 11:55:18
How to convert the auth name, email and phone to object in laravel?

What is this IDE?

|