Can anyone help in normal php uploading images in php and saving it to database and folder it is working perfectly well but its not saving on folder or database why?

|
vedjeetechnical 2021-08-19 16:20:41
https://youtu.be/xAh1ol7kVUU

#html table Structure and uses complete tutorial #html_courseYouTube
in this video we are learning about : #html table Structure and uses complete tutorial #html_course

#HTML #Full #course playlist : https://www.youtube.com/watch?v=tNrCuxu2Tpk&list=PLbBNbPVJopcPfcdLOG_xhseTrznHFqdaM

used code in video : https://github.com/vedatotcube/otcube/blob/master/table.html

Hi, welcome to my youtube #OTCubeTechnology channel , plz do like share subscribe, and comment. It does not cost a thing, but gives me boost.

————- Support me By (its Free) ——————
LIKE | COMMENT | SHARE | SUBSCRIBE Kare aur Ghanti dabaye aise hi videos ke liye

======Thanks for your Support & Love=======
#OTCubeTechnology #OTCube Technology

—===हमें फॉलो करना न भूले ===—
Subscribe Our Channel For More Videos

#otcube_yt_shorts : https://www.youtube.com/channel/UCGPXc3VQgT52ZqPXuOn_dyg
Website : https://otcube.com/

fb page : https://www.facebook.com/otcubedotcom/

dicord url : https://discord.gg/4aG7hS5

official website blog : https://technicalved.com

Email : technicalved99@gmail.com…

natghi2010 2021-08-19 16:22:32
hulviseth 2021-08-19 14:51:12
public function UserPasswordChange(Request $request)
{
$validateDate = $request->validate([
‘oldpassword’ => ‘required’,
‘password’ => ‘required|confirmed’,
]);
$hashedPassword=Auth::user()->password;

//why this point not working if (Hash::check($request->oldpassword,$hashedPassword)){

$user=User::find(Auth::id());
$user->password = Hash::make($request->password);
$user->save();
Auth::logout();
return redirect()->route(‘login’);
}else{
return redirect()->back();
}
}

Oh sorry. I thought I saw route file.

natghi2010 2021-08-19 16:23:20
hulviseth 2021-08-19 14:51:12
public function UserPasswordChange(Request $request)
{
$validateDate = $request->validate([
‘oldpassword’ => ‘required’,
‘password’ => ‘required|confirmed’,
]);
$hashedPassword=Auth::user()->password;

//why this point not working if (Hash::check($request->oldpassword,$hashedPassword)){

$user=User::find(Auth::id());
$user->password = Hash::make($request->password);
$user->save();
Auth::logout();
return redirect()->route(‘login’);
}else{
return redirect()->back();
}
}

But still

natghi2010 2021-08-19 16:24:35
hulviseth 2021-08-19 14:51:12
public function UserPasswordChange(Request $request)
{
$validateDate = $request->validate([
‘oldpassword’ => ‘required’,
‘password’ => ‘required|confirmed’,
]);
$hashedPassword=Auth::user()->password;

//why this point not working if (Hash::check($request->oldpassword,$hashedPassword)){

$user=User::find(Auth::id());
$user->password = Hash::make($request->password);
$user->save();
Auth::logout();
return redirect()->route(‘login’);
}else{
return redirect()->back();
}
}

Auth logout does what

natghi2010 2021-08-19 16:24:46
Shouldnt it redirect
hulviseth 2021-08-19 16:28:35
natghi2010 2021-08-19 16:23:20
But still

yes i see, looking strange but if {it’s not true }

natghi2010 2021-08-19 16:29:31
hulviseth 2021-08-19 16:28:35
yes i see, looking strange but if {it’s not true }

give me a second

natghi2010 2021-08-19 16:29:43
i will rewrite it for you
hulviseth 2021-08-19 16:31:46
natghi2010 2021-08-19 16:29:43
i will rewrite it for you

noted with thank you

meetlunkad 2021-08-19 16:53:14
Need api credits maintaining website …
meetlunkad 2021-08-19 16:53:34
Script
2021-08-19 16:53:43
meetlunkad 2021-08-19 16:53:14
Need api credits maintaining website …

Okay

natghi2010 2021-08-19 17:41:07
hulviseth 2021-08-19 16:31:46
noted with thank you

public function UserPasswordChange(Request $request)
{
$validateDate = $request->validate([
‘oldpassword’ => ‘required’,
‘password’ => ‘required|confirmed’,
]);
$hashedPassword = Auth::user()->password;

if (!Hash::check($request->oldpassword,$hashedPassword)){
return redirect()->route(‘login’)->with(‘error’,”Password Mismatch”);
}

User::find(auth()->user()->id)->update([“password” => $request->password]);

Auth::logout();
return redirect()->route(‘login’)->with(‘mssg’, “Succesfully Reset Password”);

}

rezphp 2021-08-19 17:57:36
what is xode wrong ? for update image
old image not delete
image update success full

public function affphotoedit(Request $request)
{ $affiliate2 = Auth::user()->affiliate;
$allNewNames = null;
if($request->photo)
{
$ext = ‘.’.$request->photo->getClientOriginalExtension();
$newName = md5($request->photo->getClientOriginalName().time()).$ext;
$request->photo->storeAs(‘markets’, $newName);
$img = image::make(‘uploads/markets/’.$newName);
$img->resize(200,200);
$img->save(‘uploads/markets/’.$newName, 90);
if(isset($affiliate2->photo))
{
File::delete(‘uploads/Markets/’.$affiliate2[‘photo’] );
}
}
$affiliate = array_merge($request->except(‘_token’), [‘photo’ => $newName]);
if(count($affiliate2) > 0)
{
Auth::user()->affiliate()->update($affiliate);
}
flash(‘update’)->success();
return redirect()->back();
}

Singhm123 2021-08-19 18:29:40
Please help me..
When I login in my web with using social-media ,Then I login but same time i open my web in new tab then it shows me logout..

I face this problem only when I login through social-media.

But normally inputting email and password does not face this issue.

Please ping me how can I resolve this..

JeevaniSM 2021-08-19 18:48:18
Singhm123 2021-08-19 18:29:40
Please help me..
When I login in my web with using social-media ,Then I login but same time i open my web in new tab then it shows me logout..

I face this problem only when I login through social-media.

But normally inputting email and password does not face this issue.

Please ping me how can I resolve this..

must be an issue with session storage

Singhm123 2021-08-19 19:34:59
JeevaniSM 2021-08-19 18:48:18
must be an issue with session storage

Any suggestions for resolve this issue

Swati Sahu 2021-08-19 19:38:04
Hi
My yajra datatable search is not working in self join
Swati Sahu 2021-08-19 19:38:29
laravel_discuss-92143.jpg

Swati Sahu 2021-08-19 19:38:51
Everywhere itis working
Swati Sahu 2021-08-19 19:40:15
Please help me
savchuk_ivan 2021-08-19 19:44:59
✴️ Hello. I have question about the work of the scheduler:
Is it possible to run the scheduler with options or parameters like commands, for example:
php artisan schedule: run –number = 5
Singhm123 2021-08-19 19:54:36
How can we stay login to auth after close the browser .
Or open web into new tabs
2021-08-19 20:01:03
Hi everyone. I’m trying to obtain just a one attribute of de response. I’m using guzzle so when I try to use the only method, the postman show me an error: the only method is no support by guzzle. So, what method I should to use in this case?
2021-08-19 20:01:42
laravel_discuss-92149.jpg
I need just the id attribute of the body
ClayboardsTechnology 2021-08-19 21:05:51
Please is there any laravel generator that is as good as InfyOm or better?
Relaxed Guy 2021-08-20 00:32:24
guys am having an issue with github actions i need help this is the error Your lock file does not contain a compatible set of packages. Please run composer update.
Error: Process completed with exit code 2. i have tried to run composer update it has refused am working with laravel 8
natghi2010 2021-08-20 00:33:24
any indonesians here?
hulviseth 2021-08-20 04:26:05
natghi2010 2021-08-19 17:41:07
public function UserPasswordChange(Request $request)
{
$validateDate = $request->validate([
‘oldpassword’ => ‘required’,
‘password’ => ‘required|confirmed’,
]);
$hashedPassword = Auth::user()->password;

if (!Hash::check($request->oldpassword,$hashedPassword)){
return redirect()->route(‘login’)->with(‘error’,”Password Mismatch”);
}

User::find(auth()->user()->id)->update([“password” => $request->password]);

Auth::logout();
return redirect()->route(‘login’)->with(‘mssg’, “Succesfully Reset Password”);

}

noted with thank you so much

tracygrey57 2021-08-20 05:26:27
hello can anyone help in normal php uploading images in php and saving it to database and folder it is working perfectly well but its not saving on folder or database why?
tracygrey57 2021-08-20 05:26:45
laravel_discuss-92159.jpg

2021-08-20 06:18:59
laravel_discuss-92162.jpg
Hi. Can you help me with this error?
ikudratov 2021-08-20 06:21:50
2021-08-20 06:18:59
Hi. Can you help me with this error?

storage/logs/laravel.log // Check log file for details

Mahkamov_Farru2 2021-08-20 07:12:40
laravel_discuss-92166.jpg
Hi guys.Why my code isnt workin’ ?I couldnt recieve any data from DB. by the way its not laravel. Its PHP
Mahkamov_Farru2 2021-08-20 07:13:21
laravel_discuss-92167.jpg

|