How to solve this problem?

|
carolinemms 2020-12-30 19:17:03
how to solve this problem?
skys215 2020-12-30 19:20:25
See log
carolinemms 2020-12-30 19:20:42
skys215 2020-12-30 19:20:25
See log

What’s?

skys215 2020-12-30 19:20:56
storage/logs
carolinemms 2020-12-30 20:28:51
what?
carolinemms 2020-12-30 20:29:03
i don’t understand sir
Siberfx 2020-12-30 20:35:53
go into your .env file first do changes:
APP_DEBUG=true
APP_ENV=local
then reload this page. or go check storage/logs folder for the log file
carolinemms 2020-12-30 20:45:54
Siberfx 2020-12-30 20:35:53
go into your .env file first do changes:
APP_DEBUG=true
APP_ENV=local
then reload this page. or go check storage/logs folder for the log file

Done

carolinemms 2020-12-30 20:46:07
carolinemms 2020-12-30 19:16:52

But still here

Siberfx 2020-12-30 20:46:38
did you change your .env file??
carolinemms 2020-12-30 20:47:44
Siberfx 2020-12-30 20:46:38
did you change your .env file??

Yes

AMIT 2020-12-30 20:51:02
Job Opening:
Laravel Full Stack Developer
Experience: 5+ year
Salary: INR 40000+
Full Time
Location: Delhi
Interested candidates may DM me with details.
natghi2010 2020-12-30 21:27:43
carolinemms 2020-12-30 20:47:44
Yes

my dude

natghi2010 2020-12-30 21:28:07
you have to php artisan config:cache + then rerun the server
carolinemms 2020-12-30 21:30:27
carolinemms 2020-12-30 19:16:52

done but still here

nanribet 2020-12-30 23:07:08
Kibeish 2020-12-30 04:53:59
Yes!! A sample cart, already adding item in session so am trying to view added items in the session shopping cart then save in database. But some problems here and there

Wow…..Ok I’m just starting one now and i’m having some issues with seeding fake data to my db

justine_chacko 2020-12-31 00:54:54
How to build a settings page when user register
Can i create new controller like Rout::post(‘/register’, ‘SettingsController@store’);
segungreat 2020-12-31 01:02:53
justine_chacko 2020-12-31 00:54:54
How to build a settings page when user register
Can i create new controller like Rout::post(‘/register’, ‘SettingsController@store’);

Can you expatiate

justine_chacko 2020-12-31 01:05:26
When user register I need to have a settings page for user. So do I need seperate model/table for that?
M.A 2020-12-31 08:27:53
justine_chacko 2020-12-31 01:05:26
When user register I need to have a settings page for user. So do I need seperate model/table for that?

What settings?

justine_chacko 2020-12-31 08:29:11
Profile settings
M.A 2020-12-31 08:29:25
If you have a small number of settings, create the cells in the user table
justine_chacko 2020-12-31 08:31:59
protected function create(array $data)
{
return User::create([
‘name’ => $data[‘name’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘title’ => ‘Your title’,
‘DOB’ => ‘Your DOB here’,
‘JOB’ => ‘Your job here’
]);
}

I get field title cannot be empty error message when register

Bhuvi100 2020-12-31 08:32:59
justine_chacko 2020-12-31 08:31:59
protected function create(array $data)
{
return User::create([
‘name’ => $data[‘name’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘title’ => ‘Your title’,
‘DOB’ => ‘Your DOB here’,
‘JOB’ => ‘Your job here’
]);
}

I get field title cannot be empty error message when register

SQL error?

justine_chacko 2020-12-31 08:34:12
yes
Dkhicher 2020-12-31 08:56:46
Add nullable() method in your migration with title column and migrate again or you can change your column that allow null value
Munish Kumar 2020-12-31 08:57:06
anyone know maxicash payment gateway
justine_chacko 2020-12-31 09:15:25
Dkhicher 2020-12-31 08:56:46
Add nullable() method in your migration with title column and migrate again or you can change your column that allow null value

making nullable works. But that are required columns

pavelk1103 2020-12-31 09:22:37
Variables maybe?
M.A 2020-12-31 09:29:55
pavelk1103 2020-12-31 09:22:37
Variables maybe?

No , I replied incorrecty

friday2021 2020-12-31 09:36:50
how can i add file in composer.json without running command ( composer dump-autoload)
justine_chacko 2020-12-31 09:42:59
table not updating, my code is,
public function update(Request $request, User $user)
{
$data = request()->validate([
“title” => “required”,
“email” => “required”,

]);
// dd($data);
$user->update($data);
return redirect(“/users/1/edit”)->with(‘success’, ‘Data updated Successfully’);
}
route
Route::get(‘/users/{user}/edit’, ‘SettingsController@edit’);
Route::patch(‘/users/{user}’, ‘SettingsController@update’);
blade
<form action=”/users/{{ $user->id }}” method=”post”>
@method(‘PATCH’)
@csrf
<div class=”form-group”>
<label for=”title”>Title:</label>
<input type=”text” value=”{{ old(‘title’) ?? $user->title ?? ‘Your website title’ }}” class=”form-control” id=”title” name=”title”>
@error(‘title’)
<small class=”text-danger”>{{ $message }}</small>
@enderror
</div>
<div class=”form-group”>
<label for=”email”>Email:</label>
<input type=”email” value=”{{ old(’email’) ?? $user->semail ?? ‘Your email here’ }}” class=”form-control” id=”email” name=”email”>
@error(’email’)
<small class=”text-danger”>{{ $message }}</small>
@enderror
</div>
<button type=”submit” class=”btn btn-primary”>Submit</button>
</form>

pavelk1103 2020-12-31 09:43:09
M.A 2020-12-31 09:29:55
No , I replied incorrecty

If no then you replied correctly. Not incorrectly

Dkhicher 2020-12-31 09:49:50
justine_chacko 2020-12-31 09:15:25
making nullable works. But that are required columns

Add validation rule required to all required field so user should send title extra column

Bhuvi100 2020-12-31 09:51:18
justine_chacko 2020-12-31 09:15:25
making nullable works. But that are required columns

Actually,I think its not a fillable property

|