Do you have a pivot table?

|
Sunilk16 2020-07-06 22:38:49
Marvixino 2020-07-06 22:37:11
and on task creation?
also job?

What type of task you want create?

Marvixino 2020-07-06 22:45:28
Sunilk16 2020-07-06 22:38:49
What type of task you want create?

storing a message in the DB, and once is saved in the DB then 3 or 4 parties should be notified by email/SMS

Sunilk16 2020-07-06 22:46:48
Ok so don’t need to create task
Sunilk16 2020-07-06 22:47:21
Just add insert query for store message
Sunilk16 2020-07-06 22:48:04
Create job with dynamic email field job
Marvixino 2020-07-06 22:50:46
Sunilk16 2020-07-06 22:48:04
Create job with dynamic email field job

OK, thx

Sunilk16 2020-07-06 22:51:06
Welcome
web_artisan77 2020-07-07 00:49:24
Offtopic: does anyone REALLY knows how to hack a wifi password all the tutorials online are bullshit
2020-07-07 01:10:18
Hı laravel and vuejs install New project help me 😂👍
hasbeensober 2020-07-07 01:42:45
Go to laravel.com
isofdev 2020-07-07 01:44:50
2020-07-07 01:10:18
Hı laravel and vuejs install New project help me 😂👍

Google it 😂

oxbir 2020-07-07 01:53:35
https://i.stack.imgur.com/PN5gN.jpg

We have 4 social networks now.

The user can delete or add.

It shows like this when I want to show it to the admin.

View post on imgur.com

That’s four telegrams.

$social_name = $social->first();
<th>ID {{ $social_name->name }}</th>

ssj7_gs 2020-07-07 04:36:38
hi guys help me for the error , I would like to delete via php artisan tinker , I am know for create via tinker factory(AppUser::class, 1000>create(); ,which would like to delete via php artisan tinker
Siberfx 2020-07-07 05:31:31
To delete all??
Rajat Agrawal 2020-07-07 06:30:35
thnks brother
Ubamiller 2020-07-07 09:17:19
ssj7_gs 2020-07-07 04:36:38
hi guys help me for the error , I would like to delete via php artisan tinker , I am know for create via tinker factory(AppUser::class, 1000>create(); ,which would like to delete via php artisan tinker

Firstly the code 👆 won’t run for the creation of 1000 users factory(AppUser::class, 1000)->create(); this should do

Ubamiller 2020-07-07 09:27:49
alejandrostivanello 2020-07-06 22:34:42
class Serie extends Model
{
public $table = “serie”;
protected $fillable = [‘id_carrera’, ‘depende_de’];

public function carrera(){
return $this->belongsTo(Carrera::class, ‘id_carrera’);
}
public function serie(){
return $this->belongsTo(‘Appserie’, ‘depende_de’);
}

public function participantes(){
return $this->belongsToMany(Patinador::class, ‘carrera_patinadores’, ‘id_serie’, ‘id_patin’);
}
}

do you have a pivot table?

Sulastri Tambunan _ 2020-07-07 09:59:36
laravel_discuss-43979.jpg
I am making registration validation on laravel using Ajax.
But my Ajax isn’t read on the browser..
Can you help me sister and brother?
Rajat Agrawal 2020-07-07 11:03:50
laravel_discuss-43980.jpg

Rajat Agrawal 2020-07-07 11:04:43
laravel_discuss-43981.jpg

Rajat Agrawal 2020-07-07 11:05:37
laravel_discuss-43982.jpg

Rajat Agrawal 2020-07-07 11:06:32
laravel_discuss-43983.jpg

Rajat Agrawal 2020-07-07 11:07:29
hey any body help I am not able to do ajax call above 4 images shows my route ,controller,ajax,and error
Rajat Agrawal 2020-07-07 11:08:16
help me anyone
Gowtham_Boopathiraj 2020-07-07 11:19:19
Hi
Input box value how to sent url in laravel controller
Please help me
Mohammad_Agbareya 2020-07-07 11:21:57
Rajat Agrawal 2020-07-07 11:07:29
hey any body help I am not able to do ajax call above 4 images shows my route ,controller,ajax,and error

you need X-CSRF-TOKEN header

Mohammad_Agbareya 2020-07-07 11:22:41
Mohammad_Agbareya 2020-07-07 11:21:57
you need X-CSRF-TOKEN header

document.head.querySelector(‘meta[name=”csrf-token”]’).content

Rajat Agrawal 2020-07-07 11:23:17
Mohammad_Agbareya 2020-07-07 11:22:41
document.head.querySelector(‘meta[name=”csrf-token”]’).content

in my ajax request

Mohammad_Agbareya 2020-07-07 11:23:34
yes, in the headers
Mohammad_Agbareya 2020-07-07 11:23:54
‘X-CSRF-TOKEN’: document.head.querySelector(‘meta[name=”csrf-token”]’).content
Mohammad_Agbareya 2020-07-07 11:25:07
make sure you have <meta name=”csrf-token” content=”####”> in your page
Rajat Agrawal 2020-07-07 11:35:36
Mohammad_Agbareya 2020-07-07 11:25:07
make sure you have <meta name=”csrf-token” content=”####”> in your page

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<meta http-equiv=”X-UA-Compatible” content=”ie=edge”>
<meta name=”csrf-token” content=”{{ csrf_token() }}”>
<title>Document</title>
<script type=”text/javascript”>
function signin(){

let name=”rajat”;
let r,results;
let data={
‘name’:name,

};
fetch(“{{route(‘PostReq’)}}”, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’,
‘X-CSRF-TOKEN’:document.head.querySelector(‘meta[name=”csrf-token”]’).content
},
body: JSON.stringify(name)
}).then(function(response){
console.log(response.status);
})
}
</script>
</head>
<body>
<p>Hello call rest api</p>
<button onclick=”signin()”> click it now</button>

</body>
</html>

Rajat Agrawal 2020-07-07 11:36:17
now this is giving internal server error look at my controller it is simply returning json response
Mohammad_Agbareya 2020-07-07 11:37:01
so no more 419, yes ?
Rajat Agrawal 2020-07-07 11:37:57
Mohammad_Agbareya 2020-07-07 11:37:01
so no more 419, yes ?

yes bro and by the way thanks for the help but still it is giving error 500. i have called controller and returned response in it

Mohammad_Agbareya 2020-07-07 11:38:32
what is the error? what line ?
Rajat Agrawal 2020-07-07 11:40:03
laravel_discuss-43999.jpg
Photo from Rajat
Mohammad_Agbareya 2020-07-07 11:40:35
try response()->json([…])
VimKanzo 2020-07-07 11:41:01
Rajat Agrawal 2020-07-07 11:40:03
Photo from Rajat

Click on the network tab then click the endpoint to see the actual response

Mohammad_Agbareya 2020-07-07 11:45:10
Mohammad_Agbareya 2020-07-07 11:40:35
try response()->json([…])

Rajat worked ?

Rajat Agrawal 2020-07-07 11:48:36
nope giving screenshots
Rajat Agrawal 2020-07-07 11:50:45
public function postRequest1(Request $request){

return response::json([‘success’=>’Got Simple Ajax Request.’]);

}

Rajat Agrawal 2020-07-07 11:50:57
namespace AppHttpControllers;

use IlluminateHttpRequest;
use IlluminateHttpResponse;

use GuzzleHttpExceptionGuzzleException;
use GuzzleHttpClient;

Mohammad_Agbareya 2020-07-07 11:51:29
public function postRequest1(Request $request){

return response()->json([‘success’=>’Got Simple Ajax Request.’], 200);

}

Rajat Agrawal 2020-07-07 11:52:07
Mohammad_Agbareya 2020-07-07 11:51:29
public function postRequest1(Request $request){

return response()->json([‘success’=>’Got Simple Ajax Request.’], 200);

}

this one when i typed it is showing red error in vs code

Mohammad_Agbareya 2020-07-07 11:53:09
return response()->json([‘success’=>’Got Simple Ajax Request.’], 200);
Mohammad_Agbareya 2020-07-07 11:53:37
try with 200 as second parameter
Rajat Agrawal 2020-07-07 11:53:44
BadMethodCallException: Method IlluminateHttpResponse::json does not exist. in file C:xampphtdocsOodeatBlogvendorlaravelframeworksrcIlluminate
Rajat Agrawal 2020-07-07 11:53:55
this error
Rajat Agrawal 2020-07-07 11:55:06
laravel_discuss-44012.jpg
Photo from Rajat
|