Im not getting how to use laravel, can anyone help me out?

|
Bhuvi100 2020-12-31 09:51:28
Check that once
Prem Soni 2020-12-31 09:53:08
Return function not working in controller
Prem Soni 2020-12-31 09:53:19
Can anyone help me
Prem Soni 2020-12-31 09:53:49
If I use validation in a function and then I used return than it is not working
justine_chacko 2020-12-31 09:55:29
Bhuvi100 2020-12-31 09:51:18
Actually,I think its not a fillable property

it is nullable so do i need to add in model $fillable arrray? I changed,
“title” => “required”,
“email” => “required”,
to
“title” => “nullable”,
“email” => “nullable”,

Bhuvi100 2020-12-31 09:56:26
justine_chacko 2020-12-31 09:55:29
it is nullable so do i need to add in model $fillable arrray? I changed,
“title” => “required”,
“email” => “required”,
to
“title” => “nullable”,
“email” => “nullable”,

Definitely,if you need a property to be allowed for mass assignment

Bhuvi100 2020-12-31 09:56:36
You should add
justine_chacko 2020-12-31 09:56:44
ok
Bhuvi100 2020-12-31 09:57:34
justine_chacko 2020-12-31 09:55:29
it is nullable so do i need to add in model $fillable arrray? I changed,
“title” => “required”,
“email” => “required”,
to
“title” => “nullable”,
“email” => “nullable”,

Reverse it if you always want the title and email

justine_chacko 2020-12-31 09:58:42
Bhuvi100 2020-12-31 09:57:34
Reverse it if you always want the title and email

ok

Bhuvi100 2020-12-31 09:58:53
And there is no need for nullable in the migration if you are gonna keep some data in that column always
justine_chacko 2020-12-31 09:58:53
now works
justine_chacko 2020-12-31 10:00:18
I want some default value in that field during registration but that fields are not in register form. possible?
Bhuvi100 2020-12-31 10:34:34
Yeah use default method
2020-12-31 10:45:57
Coding High
A Place where Future Professional comes and learns new things Every day
Content That We Provide
(Books+Articles)
1. Machine learning
2. Artificial intelligence
3. Web Development (Html, CSS, JavaScript, Django, )
And Programing related content
Let’s Code
Channel Name: codehigh
dsahir 2020-12-31 11:01:17
im not getting how to use laravel,can anyone help me out??
Jadidi_82 2020-12-31 11:33:08
laravel_discuss-64859.jpg
hi guy how can I get the id of this
tattien 2020-12-31 11:33:58
https://downloadmoreram.com/ Free Download RAM
Phen 2020-12-31 11:39:27
Hello all, I have one problem
In my Laravel application multiple user access to one api at the same time, so it create record at the same time and having problem.
My idea i just want one user to create the record as order. Do we have technique to solve that problem
hypernxf 2020-12-31 11:39:35
Jadidi_82 2020-12-31 11:33:08
hi guy how can I get the id of this

$trn->id ?

hypernxf 2020-12-31 11:41:06
What you need is a lock. So that only one user can process it at one point

https://laravel.com/docs/8.x/cache#managing-locks

Jadidi_82 2020-12-31 11:43:36
hypernxf 2020-12-31 11:39:35
$trn->id ?

yes I want to find that id ——->find($id)

hypernxf 2020-12-31 11:44:02
Sorry I dont understand what do you really want to do
Jadidi_82 2020-12-31 11:55:43
hypernxf 2020-12-31 11:44:02
Sorry I dont understand what do you really want to do

I want to attach sth to the id of new value of tracks table that has been created resently

Deenoadmin 2020-12-31 11:56:51
Kasi hast

Shirazi basheh

hypernxf 2020-12-31 12:03:12
so $newTrackTable->trnId = $trn->id ?
hypernxf 2020-12-31 12:03:23
Sorry still dont really understand your qns.
2020-12-31 13:23:42
Hi if anyone fresher who is trouble using ajax please can try livewire in laravel
hypernxf 2020-12-31 15:22:29
If you have trouble using ajax, it’s not the right reason to move to livewire lol
justine_chacko 2020-12-31 15:35:31
$var = “This contains $data”;
In the above statement what are the possibilities that $data contents can break the statement except ” symbol?
hypernxf 2020-12-31 15:44:06
$data is an array
justine_chacko 2020-12-31 15:49:11
$data comes from post body of website
hypernxf 2020-12-31 16:14:33
Sure it still can be an array if the input is an array of data
hypernxf 2020-12-31 16:15:27
like <input type=”text” name=”email[]” />
hypernxf 2020-12-31 16:16:57
Assuming the POST you are referring to is a form that is
|