Can you please help me to search query of alias column?

|
Neophyte_01 2022-08-25 15:31:05
i will try
Shreya 2022-08-25 15:32:42
Hey can anyone tell me how can i link a js file from js folder of resources to blade.php in views?
Akashdeep Singh 2022-08-25 15:44:47
laravel_discuss-135264.jpg
Attempt to read property id on null
Dhruv Trivedi 2022-08-25 15:46:28
hey anyone tell me about stripe payments
Vineet Malhotra 2022-08-25 15:46:43
Akashdeep Singh 2022-08-25 15:44:47
Attempt to read property id on null

U are not getting that id

Vineet Malhotra 2022-08-25 15:46:57
Dhruv Trivedi 2022-08-25 15:46:28
hey anyone tell me about stripe payments

What do you want to know

Relaxed Guy 2022-08-25 15:47:52
I have the software
Shanu S 2022-08-25 15:48:01
laravel_discuss-135270.jpg
Any please help me to solve this when I run npm rundev it stuck inn line APp_URL:….
For several minuits
Shanu S 2022-08-25 15:48:54
laravel_discuss-135271.jpg
Why like this
Akashdeep Singh 2022-08-25 15:52:35
Vineet Malhotra 2022-08-25 15:46:43
U are not getting that id

laravel_discuss-135272.jpg
And now is it right?

Vineet Malhotra 2022-08-25 16:00:16
Akashdeep Singh 2022-08-25 15:52:35
And now is it right?

Like fname use Id variable as well

faissaloux 2022-08-25 16:05:45
Shanu S 2022-08-25 15:48:54
Why like this

It’s listening for any changes, you just need to open the website and it will work

Akashdeep Singh 2022-08-25 16:07:25
Vineet Malhotra 2022-08-25 16:00:16
Like fname use Id variable as well

Thanks its working 😊

Sakil 2022-08-25 16:25:20
Hi guys.. please help me. I am using Vue and laravel.
How to make a scroller always at bottom because I am working on a chatting site and i need to make the chat window always scroll in bottom automatically.
Shanu S 2022-08-25 16:25:46
faissaloux 2022-08-25 16:05:45
It’s listening for any changes, you just need to open the website and it will work

Ooh ok so I need to wait more?? Showing vite error while running

SalvoDM91 2022-08-25 16:49:41
Hi guys, I would like to show on top right an icon with the number of unread messages. How I could proceed? I create the query inside the Controller? I should create an hook? Which could be the best way?
DesolatorMagno 2022-08-25 16:51:43
SalvoDM91 2022-08-25 16:49:41
Hi guys, I would like to show on top right an icon with the number of unread messages. How I could proceed? I create the query inside the Controller? I should create an hook? Which could be the best way?

In every view, right?

DesolatorMagno 2022-08-25 16:53:50
https://laravel.com/docs/9.x/views#sharing-data-with-all-views
you can use, view share and view composer, but you need to think well the logic.

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
SalvoDM91 2022-08-25 16:54:51
Yes, it’s for this
SalvoDM91 2022-08-25 16:55:20
laravel_discuss-135282.jpg

SalvoDM91 2022-08-25 16:55:31
So for each view
DesolatorMagno 2022-08-25 16:57:29
Unless you want to have live update view composer/share is the way to go.
SalvoDM91 2022-08-25 16:58:22
Yes yes, composer / share is fine for me
Tobel_l 2022-08-25 18:09:36
How would I write the query if ” i want insert a data in single column where id = 1″ ?? You can use either Model or DB
DarshanSaroya 2022-08-25 18:30:44
$data = Model:find($id);
$data->fieldname = ‘value’;
$data->save();
ualikhandulat 2022-08-25 18:45:23
Model::where(‘id’, $id)->update([‘column’ => $val]);
ualikhandulat 2022-08-25 18:45:34
DarshanSaroya 2022-08-25 18:30:44
$data = Model:find($id);
$data->fieldname = ‘value’;
$data->save();

It’s double query

ualikhandulat 2022-08-25 18:45:53
ualikhandulat 2022-08-25 18:45:23
Model::where(‘id’, $id)->update([‘column’ => $val]);

It’s single

Ulzh7 2022-08-25 19:06:35
protected function create(array $data)
{
$newUser = User::create([
‘name’ => $data[‘name’],
‘secretword’ => $data[‘secretword’],
’email’ => $data[’email’],
‘image’ => $data[‘image’],
‘password’ => Hash::make($data[‘password’]),
]);

return $newUser;

}

Ulzh7 2022-08-25 19:06:51
Ulzh7 2022-08-25 19:06:35
protected function create(array $data)
{
$newUser = User::create([
‘name’ => $data[‘name’],
‘secretword’ => $data[‘secretword’],
’email’ => $data[’email’],
‘image’ => $data[‘image’],
‘password’ => Hash::make($data[‘password’]),
]);

return $newUser;

}

what i need to add for upload image?

Mk_123656 2022-08-25 19:14:18
Hi all
Can you please help me to search query of alias column ?
applestrawberrypie 2022-08-25 19:26:10
Hi, Laravel
applestrawberrypie 2022-08-25 19:26:36
Is anyone here?
thorefinn 2022-08-25 19:51:48
applestrawberrypie 2022-08-25 19:26:36
Is anyone here?

Probably no

thorefinn 2022-08-25 19:53:04
Ulzh7 2022-08-25 19:06:51
what i need to add for upload image?

This is not how you upload image this will just store the name of image you upload

|