Hi all, what is great values to profile image upload on web site?

|
eyyubzademireli 2021-08-12 18:43:44
This is error. Please help me. I did composer dump artisan clear and optimize.
EI 2021-08-12 18:45:27
Please, how does one prevent duplicate entry in Laravel without showing an error after making that field unique to check for duplicate, but rather, it will still be on that same page but no record will be saved since it is a duplicate.
khanbozkurt 2021-08-12 18:51:07
Hi all, what is great values to profile image upload on web site?
khanbozkurt 2021-08-12 18:51:20
mimeType? and image size?
YOUCODEWORLD 2021-08-12 19:47:56
khanbozkurt 2021-08-12 18:51:07
Hi all, what is great values to profile image upload on web site?

There are no rules for this, it depends on your design.

khanbozkurt 2021-08-12 20:01:47
YOUCODEWORLD 2021-08-12 19:47:56
There are no rules for this, it depends on your design.

thank you for answer. I will configure rules what depends on design 👍

danieloseni 2021-08-12 20:04:13
EI 2021-08-12 18:45:27
Please, how does one prevent duplicate entry in Laravel without showing an error after making that field unique to check for duplicate, but rather, it will still be on that same page but no record will be saved since it is a duplicate.

Can you elaborate further?

Abdu3249 2021-08-12 22:31:09
khanbozkurt 2021-08-12 18:51:20
mimeType? and image size?

MimeType i guess

EI 2021-08-12 22:48:38
danieloseni 2021-08-12 20:04:13
Can you elaborate further?

I have another table where I post data, and I made the column unique to check against duplicate, but Laravel will show an error page which I don’t want.
So, how do I prevent the error page from showing that there is a duplicate data.

2021-08-12 23:37:46
I keep repeating my message to insure you safe trading, I’m here to teach you how to make alot of profit in crypto business!
danieloseni 2021-08-13 01:47:27
EI 2021-08-12 22:48:38
I have another table where I post data, and I made the column unique to check against duplicate, but Laravel will show an error page which I don’t want.
So, how do I prevent the error page from showing that there is a duplicate data.

You ads add a validator

danieloseni 2021-08-13 01:47:50
You can check about validation in the laravel docs
danieloseni 2021-08-13 01:48:36
The validator returns errors if there are any in the data submitted including duplicate entries
danieloseni 2021-08-13 01:49:30
So what you do is to take those errors and return the view where the post request was made, with those errors and render the errors in the view accordingly
EI 2021-08-13 02:23:58
Thanks 👍
Siberfx 2021-08-13 03:08:10
eyyubzademireli 2021-08-12 18:43:09

chmod -R 777 storage bootstrap/cache

2021-08-13 04:58:46
Hello guys D.m me to share my testimony with you on crypto business and how I made it
Ivaldes8 2021-08-13 05:19:16
Hi everyone, i know that Im about to ask is not a directly about laravel, but here i go: can anyone have experience with facebook api? Please someone that can help me to save my life?
being_danin 2021-08-13 06:38:56
Do anyone have paystack payment integration demo in laravel
Vk 2021-08-13 07:54:49
I want get auth::user info in config file,
How to get that?
Jomitz 2021-08-13 08:41:42
Vk 2021-08-13 07:54:49
I want get auth::user info in config file,
How to get that?

May i ask why do you need that?

steeek 2021-08-13 08:43:44
$users=AppUser::inRandomOrder()->take(rand(1,5))->pluck(‘id);
steeek 2021-08-13 08:43:56
what is this code
Jomitz 2021-08-13 08:45:42
steeek 2021-08-13 08:43:44
$users=AppUser::inRandomOrder()->take(rand(1,5))->pluck(‘id);

First take a random number from 1-5 then take that many number of records id from the db in a random order

Jomitz 2021-08-13 08:46:47
Jomitz 2021-08-13 08:45:42
First take a random number from 1-5 then take that many number of records id from the db in a random order

From the users table

2021-08-13 09:39:31
If you want to learn or to start making a huge amount of money in crypto business D m me
Vk 2021-08-13 10:06:56
Jomitz 2021-08-13 08:41:42
May i ask why do you need that?

I am using some url inside config,
Wher i have to use auth user info

khamroev 2021-08-13 10:07:19
is it worth the laravel programmer to learn vue js? Isn’t it the duty of frontend programmers?
kuzmich321 2021-08-13 10:08:23
khamroev 2021-08-13 10:07:19
is it worth the laravel programmer to learn vue js? Isn’t it the duty of frontend programmers?

in short, it is

steeek 2021-08-13 10:11:47
$post = User::find(3)->post();
steeek 2021-08-13 10:12:04
how can i print the query form
khamroev 2021-08-13 10:12:49
steeek 2021-08-13 10:12:04
how can i print the query form

just return this to view and in blade file use like {{ $post }}

Sultonov_Daler 2021-08-13 10:14:12
steeek 2021-08-13 10:11:47
$post = User::find(3)->post();

Is it one to one relationship or one to many?

steeek 2021-08-13 10:15:13
Sultonov_Daler 2021-08-13 10:14:12
Is it one to one relationship or one to many?

Many

steeek 2021-08-13 10:15:29
I need it like sql
|