Which relationship type do you use for images?

|
iyeoluwa 2022-01-09 15:17:55
You’re welcome
Yamraj117 2022-01-09 15:18:29
iyeoluwa 2022-01-09 15:17:55
You’re welcome

☺️☺️

ouboros 2022-01-09 16:06:20
I have users table and avatar column. this avatar column stores file path. example: /storage/avatar/avatar1.png also its nullable. BUT!! if this column null can i define a default path when $user->avatar called in blade files? maybe with get mutator??
arthur_minasyan_96 2022-01-09 16:12:33
Lucky 2022-01-09 06:43:50
It’s a add condition or edit condition

laravel_discuss-104366.jpg
The problem is that I don’t want to require that checkbox. It’s optional. It should be checked only in a few cases. Example in the screenshot. The Inertia checkbox should only be checked on Tailwind starter kits.

arthur_minasyan_96 2022-01-09 16:13:36
Those cartds are checkboxes.
tracygrey57 2022-01-09 16:22:56
Who can suggest a catchy name for coin Tracking website
tracygrey57 2022-01-09 16:23:15
Example like

Coingecko.com
Coinmarketcap.com
Coinhunt.cc
Coinsniper.com
Watcher.Guru

BaronNo1 2022-01-09 16:57:48
*2-4 weeks is all it takes!* 🤯

Internshala just announced *Internship Resolutions 2022* to help you build your resume in a short period of time and *get a kickstart in the new year along with an assured stipend*.

We can apply to the internships in our favorite profiles before others and win rewards up to INR 10,000! Register here and get your *1st point*- https://internshala.com/internship-resolutions-2022?utm_source=eap_telegram&utm_medium=18568631

Internship | Summer Internship 2022 | Internship in IndiaInternshala
22-Aug-2022 Apply to 2000+ summer internships all over India and abroad with stipend across all streams. Apply and register for free now.
DesolatorMagno 2022-01-09 17:01:00
ouboros 2022-01-09 16:06:20
I have users table and avatar column. this avatar column stores file path. example: /storage/avatar/avatar1.png also its nullable. BUT!! if this column null can i define a default path when $user->avatar called in blade files? maybe with get mutator??

Yes.

ouboros 2022-01-09 17:01:35
DesolatorMagno 2022-01-09 17:01:00
Yes.

how dear Reny, i coulnt write the logic

Harr 2022-01-09 17:02:43
how can i implement sms in laravel
DesolatorMagno 2022-01-09 17:02:59
ouboros 2022-01-09 17:01:35
how dear Reny, i coulnt write the logic

In the documentation should be examples of how the getter and setters work, you just check, if empty return default value.

natghi2010 2022-01-09 17:13:58
ouboros 2022-01-09 17:01:35
how dear Reny, i coulnt write the logic

in the model, use getAvatarAttribute(){
return $this->attribute[‘avatar’] ?? ‘default-image-location’;
}

ouboros 2022-01-09 17:14:20
thankksss youu (^.^)
natghi2010 2022-01-09 17:14:37
and define a property
protected $appends = [‘avatar’];
2022-01-09 17:14:57
most shit framework
natghi2010 2022-01-09 17:15:20
better go back to codeignitor freind
Anshu594 2022-01-09 17:17:50
2022-01-09 17:14:57
most shit framework

Well, It’s not.. If you want to make your site more flexible for large number for users then this framework is just best..

However, if you are running individually like me, then go with codeignitor..

ouboros 2022-01-09 17:18:38
what do you want to mean with “individually” ?
Dark Matter 2022-01-09 17:18:58
Anshu594 2022-01-09 17:17:50
Well, It’s not.. If you want to make your site more flexible for large number for users then this framework is just best..

However, if you are running individually like me, then go with codeignitor..

even individually, larevel is still a better option

Anshu594 2022-01-09 17:19:15
Dark Matter 2022-01-09 17:18:58
even individually, larevel is still a better option

depend on project..

Still, Everyone has their own choice..

peace ✌️

devlaravel 2022-01-09 17:44:24
iyeoluwa 2022-01-09 15:15:31
If you want to use queue you’ll either have to start it manually, or use cron job

Plese example of manually

foulla_sam 2022-01-09 17:48:23
iyeoluwa 2022-01-09 12:58:04
Use filepond

Is it easy to handle uploaded files?

Danieldrew 2022-01-09 17:48:35
devlaravel 2022-01-09 17:44:24
Plese example of manually

implement ShouldQueue in notif

devlaravel 2022-01-09 17:51:31
Danieldrew 2022-01-09 17:48:35
implement ShouldQueue in notif

Is this run with out cron

Danieldrew 2022-01-09 17:52:01
devlaravel 2022-01-09 17:51:31
Is this run with out cron

Yes
https://laravel.com/docs/8.x/notifications#queueing-notifications

Sambit22 2022-01-09 18:17:14
Can anyone tell me how to upload multiple files using store()
Sambit22 2022-01-09 18:20:19
I am able to move files using that method. But problem is how to upload the file name to database
Kaushikkt 2022-01-09 18:29:00
Sambit22 2022-01-09 18:20:19
I am able to move files using that method. But problem is how to upload the file name to database

Use package mediable.

Djuraev_Oybek 2022-01-09 18:29:30
laravel_discuss-104397.jpg
Hello everyone
#question
How to make it so that the user can select several products and change them with one request.

example code please

Sambit22 2022-01-09 18:32:20
Kaushikkt 2022-01-09 18:29:00
Use package mediable.

Can you tell me how to upload using store()

Siberfx 2022-01-09 18:40:41
Which relationship type do you use for images ?
BIRUK_WEBi 2022-01-09 18:47:50
Hello Am trying to post on Facebook with puppeteer is there anyone did this before
iyeoluwa 2022-01-09 18:52:39
devlaravel 2022-01-09 17:44:24
Plese example of manually

Php artisan queue:work

Kaushikkt 2022-01-09 18:56:21
Sambit22 2022-01-09 18:32:20
Can you tell me how to upload using store()

$request->file(‘avatar’)->storeAs(
‘avatars’, $request->user()->id
);

storeAs( filename, directory name)

|