I have creatd two database one is designation othere is employee i have put 3 designationname name id in designation table now i am taking two input name and designtionname i have to strore designtionid related to name how can i do this?

|
mmohitssingla 2020-02-25 07:28:22
Which library is used to firebase database integration with laravel 6?
skys215 2020-02-25 08:38:01
sorry, english group
skys215 2020-02-25 08:38:43
DisneybySherlock 2020-02-25 01:58:53
Hey everyone..does any know how to solve this kind of problem ?? Please help

the file name starts with . so it’s a hidden file, you have opened a wrong file

Z_Yamin 2020-02-25 08:41:51
when i click to a button to open a modal to edite data show for me this erro in consol. log().
what is the problem?
Access to XMLHttpRequest at ‘javascript:ajaxLoad(‘http://localhost/account/public/system/update/2′)’ from origin ‘http://localhost’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Z_Yamin 2020-02-25 08:47:38
how can i solve it?
abdulmejidshemsu 2020-02-25 08:51:04
Z_Yamin 2020-02-25 08:41:51
when i click to a button to open a modal to edite data show for me this erro in consol. log().
what is the problem?
Access to XMLHttpRequest at ‘javascript:ajaxLoad(‘http://localhost/account/public/system/update/2′)’ from origin ‘http://localhost’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

check csrf

Z_Yamin 2020-02-25 08:52:01
it is not about that. csrf exist in form
skys215 2020-02-25 08:53:45
Z_Yamin 2020-02-25 08:41:51
when i click to a button to open a modal to edite data show for me this erro in consol. log().
what is the problem?
Access to XMLHttpRequest at ‘javascript:ajaxLoad(‘http://localhost/account/public/system/update/2′)’ from origin ‘http://localhost’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

use cors package

manojgohel 2020-02-25 08:59:14
I’m Angular, Laravel, Nodejs, Djando developer.

Have any project and issue please ping me. @manojgohel

rebory 2020-02-25 09:03:16
laravel_discuss-27744.jpg
any buddy tell me why i got exception here?
emtized 2020-02-25 09:04:47
rebory 2020-02-25 09:03:16
any buddy tell me why i got exception here?

what kind of exception ?

rebory 2020-02-25 09:06:32
emtized 2020-02-25 09:04:47
what kind of exception ?

laravel_discuss-27746.jpg

emtized 2020-02-25 09:12:11
rebory 2020-02-25 09:06:32

it seems ok

emtized 2020-02-25 09:12:18
it should work
rebory 2020-02-25 09:12:30
emtized 2020-02-25 09:12:11
it seems ok

no

emtized 2020-02-25 09:13:03
remove @return from php Doc section
2020-02-25 09:50:11
Is any looking for job in Ahemdabad for laravel
Akshay 2020-02-25 10:26:09
I am new to laravel
I have creatd two database one is designation othere is employee i have put 3 designationname name id in designation table now i am taking two input name and designtionname i have to strore designtionid related to name how can i do this?
skys215 2020-02-25 10:30:03
Akshay 2020-02-25 10:26:09
I am new to laravel
I have creatd two database one is designation othere is employee i have put 3 designationname name id in designation table now i am taking two input name and designtionname i have to strore designtionid related to name how can i do this?

you should pass desgintionid from the form, not the name

DisneybySherlock 2020-02-25 10:54:24
skys215 2020-02-25 08:38:43
the file name starts with . so it’s a hidden file, you have opened a wrong file

No i need this file
It opens normaly when the project is on desktop

But as soon as i put the project inside the htdoc file it becomes like that

Akshay 2020-02-25 11:00:15
skys215 2020-02-25 10:30:03
you should pass desgintionid from the form, not the name

I cant use join or something so there i can fetch the related colume data something like this

skys215 2020-02-25 11:00:22
Are sure you need the file which filename starts with dot?
skys215 2020-02-25 11:00:50
Akshay 2020-02-25 11:00:15
I cant use join or something so there i can fetch the related colume data something like this

yes, go to documentation, eloquent, relationships

Akshay 2020-02-25 11:02:21
Ok
xoovv 2020-02-25 11:16:52
Hello @everybody !
Can anybody help me to find the top advanced course for deep learning of the Laravel?
DisneybySherlock 2020-02-25 11:17:27
skys215 2020-02-25 11:00:22
Are sure you need the file which filename starts with dot?

The files doenst have a dot when its on the desktop

2020-02-25 11:17:41
xoovv 2020-02-25 11:16:52
Hello @everybody !
Can anybody help me to find the top advanced course for deep learning of the Laravel?

Git.ir

DisneybySherlock 2020-02-25 11:17:52
Why does the dot show as soon as i put it in the htdoc file ??
xoovv 2020-02-25 11:18:43
2020-02-25 11:17:41
Git.ir

in English please, if it possible

SM_NHosseini 2020-02-25 11:20:55
xoovv 2020-02-25 11:18:43
in English please, if it possible

The Best source is laracast

http://laracast.com/

skys215 2020-02-25 11:21:09
DisneybySherlock 2020-02-25 11:17:52
Why does the dot show as soon as i put it in the htdoc file ??

I think you have copy the wrong file

Z_Yamin 2020-02-25 11:21:41
xoovv 2020-02-25 11:16:52
Hello @everybody !
Can anybody help me to find the top advanced course for deep learning of the Laravel?

laravel.com

harmlez_prinz 2020-02-25 11:22:31
Morning
harmlez_prinz 2020-02-25 11:22:42
Good day to you all
xoovv 2020-02-25 11:22:58
SM_NHosseini 2020-02-25 11:20:55
The Best source is laracast

http://laracast.com/

Thanks!

2020-02-25 11:22:58
xoovv 2020-02-25 11:18:43
in English please, if it possible

All tutorials are free
  It is in English

xoovv 2020-02-25 11:23:05
Z_Yamin 2020-02-25 11:21:41
laravel.com

Thanks!

Z_Yamin 2020-02-25 11:23:16
welcome
harmlez_prinz 2020-02-25 11:23:53
Please how do I display data from three different tables in a single view
Z_Yamin 2020-02-25 11:24:15
harmlez_prinz 2020-02-25 11:23:53
Please how do I display data from three different tables in a single view

join them

harmlez_prinz 2020-02-25 11:26:00
Below is my relationship

class Account extends Model
{
public function user()
{
return $this->belongsTo(‘AppUser’);
}
}

class Department extends Model
{
public function user()
{
return $this->belongsTo(‘AppUser’);
}

public function deignation()
{
return $this->hasMany(‘AppDesignation’);
}
}

class Designation extends Model
{
public function user()
{
return $this->belongsTo(‘AppUser’);
}

public function department()
{
return $this->belongsTo(‘AppDepartment’);
}
}

harmlez_prinz 2020-02-25 11:26:29
class User extends Authenticatable
{

public function account()
{
return $this->hasOne(‘AppAccount’);
}

public function department()
{
return $this->hasOne(‘AppDepartment’);
}

public function designation()
{
return $this->hasOne(‘AppDesignation’);
}

}

harmlez_prinz 2020-02-25 11:27:59
laravel_discuss-27783.jpg
I want to diplay each users department and designation in that table
harmlez_prinz 2020-02-25 11:36:38
Z_Yamin 2020-02-25 11:24:15
join them

I dont get please

skys215 2020-02-25 11:38:21
harmlez_prinz 2020-02-25 11:27:59
I want to diplay each users department and designation in that table

use with() function
$user = User::with([‘designation’,’department])->get()

skys215 2020-02-25 11:38:56
or load() function if you have already got the user elsewhere
harmlez_prinz 2020-02-25 11:48:34
alright, Thanks.. Will try this now
Akshay Bhardwaj 2020-02-25 12:08:58
laravel_discuss-27789.jpg

Akshay Bhardwaj 2020-02-25 12:09:01
Solution?
skys215 2020-02-25 12:11:39
using https?
|