When creating a relation hasOne or HasMany does the name of the function in the model matters or not?

|
ForeingNavarro 2020-07-09 16:17:48
and one assistant can belong to many events
alexanderdavii 2020-07-09 16:20:11
how to store gif image ?
alexanderdavii 2020-07-09 16:20:29
it can’t moving when i store it
…. 2020-07-09 16:57:47
isofdev 2020-07-09 13:39:05
If you use laragon click on database after connected go to manage user select a user and show authorization

laravel_discuss-44317.jpg
I doing it such say you

isofdev 2020-07-09 16:59:06
…. 2020-07-09 16:57:47
I doing it such say you

Enter your username password

…. 2020-07-09 16:59:24
Ok
…. 2020-07-09 17:00:25
laravel_discuss-44320.jpg

isofdev 2020-07-09 17:00:29
alexanderdavii 2020-07-09 16:20:11
how to store gif image ?

Try this script

if($request->hasFile(‘image’)){
$folder->image = $request->file(‘image’)->store(‘uploads/folder’);
}

…. 2020-07-09 17:02:01
…. 2020-07-09 17:00:25

Why

isofdev 2020-07-09 17:03:32
…. 2020-07-09 17:02:01
Why

Restart your server

…. 2020-07-09 17:03:44
From laragon
isofdev 2020-07-09 17:03:47
and retry
isofdev 2020-07-09 17:03:58
yes
…. 2020-07-09 17:04:07
Ok
alexanderdavii 2020-07-09 17:08:08
isofdev 2020-07-09 17:00:29
Try this script

if($request->hasFile(‘image’)){
$folder->image = $request->file(‘image’)->store(‘uploads/folder’);
}

laravel_discuss-44328.jpg
i have tried this function but i got error

isofdev 2020-07-09 17:22:00
alexanderdavii 2020-07-09 17:08:08
i have tried this function but i got error

show me the error

alexanderdavii 2020-07-09 17:22:31
isofdev 2020-07-09 17:22:00
show me the error

laravel_discuss-44332.jpg

jhayforshort 2020-07-09 17:24:09
Hi, any suggestion project for newbie. Thank you. =)
. 2020-07-09 17:28:42
jhayforshort 2020-07-09 17:24:09
Hi, any suggestion project for newbie. Thank you. =)

School Management System😁😁

. 2020-07-09 17:32:09
Admin you dont want arabs in the group?πŸ˜‚πŸ˜‚πŸ˜‚
Mohammad_Agbareya 2020-07-09 17:33:30
this is racist
…. 2020-07-09 17:41:41
isofdev 2020-07-09 17:03:32
Restart your server

laravel_discuss-44343.jpg
Run it but I can’t enter to manager user and authentication and privilege

isofdev 2020-07-09 17:42:18
alexanderdavii 2020-07-09 17:08:08
i have tried this function but i got error

in if($request->file(‘image’)) change it by if($request->hasFile(‘image’))

focalfossa20 2020-07-09 17:49:24
Someone can tell me how to testing the monolithic architecture in laravel app ?
alexanderdavii 2020-07-09 17:52:48
isofdev 2020-07-09 17:42:18
in if($request->file(‘image’)) change it by if($request->hasFile(‘image’))

you’r right , it’s work πŸ˜…πŸ˜…πŸ˜…

isofdev 2020-07-09 17:57:06
…. 2020-07-09 17:41:41
Run it but I can’t enter to manager user and authentication and privilege

you can use the terminal to add privilege

isofdev 2020-07-09 17:57:28
with GRANT
…. 2020-07-09 18:13:25
How
…. 2020-07-09 18:16:35
isofdev 2020-07-09 17:57:06
you can use the terminal to add privilege

laravel_discuss-44351.jpg

isofdev 2020-07-09 18:27:25
…. 2020-07-09 18:13:25
How

Launch laragon terminal
1- connect with : mysql -u root
2- execute this command
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’;

…. 2020-07-09 18:30:23
Not benefit
…. 2020-07-09 18:30:56
I want uninstalling
Then install
isofdev 2020-07-09 18:32:50
…. 2020-07-09 18:30:56
I want uninstalling
Then install

Ok try it

…. 2020-07-09 18:37:17
Ok
Mahdi_khani 2020-07-09 18:37:51
laravel_discuss-44358.jpg
Hi . How to create object of class like this? I
Mahdi_khani 2020-07-09 18:38:15
Mahdi_khani 2020-07-09 18:37:51
Hi . How to create object of class like this? I

Not found class and its path like this
Help please

…. 2020-07-09 19:04:01
isofdev 2020-07-09 18:32:50
Ok try it

laravel_discuss-44361.jpg
Run
But what should I do so that it is not like the previous problem

web_artisan77 2020-07-09 19:05:14
When creating a relation hasOne or HasMany does the name of the function in the model matters or not?
isofdev 2020-07-09 19:12:09
…. 2020-07-09 19:04:01
Run
But what should I do so that it is not like the previous problem

Click on root

isofdev 2020-07-09 19:12:20
And show me
…. 2020-07-09 19:13:17
laravel_discuss-44365.jpg

isofdev 2020-07-09 19:14:21
Root is ok
…. 2020-07-09 19:15:15
and another
…. 2020-07-09 19:15:52
am I delete the users
isofdev 2020-07-09 19:16:17
…. 2020-07-09 19:15:52
am I delete the users

No don’t delete anything

…. 2020-07-09 19:17:22
I will delete them all except root user
…. 2020-07-09 19:17:37
Is it ok
isofdev 2020-07-09 19:17:59
…. 2020-07-09 19:17:37
Is it ok

Great

cayetanohosma 2020-07-09 19:19:00
web_artisan77 2020-07-09 19:05:14
When creating a relation hasOne or HasMany does the name of the function in the model matters or not?

I guess not

…. 2020-07-09 19:20:02
isofdev 2020-07-09 19:17:59
Great

I mean, delete them all except root user

|