skip to Main Content

"Attempt to read property "titulo" on string" Laravel

No matter what I do this error keeps popping up, I´ve searched for a solution but Im too stupid to comprehend what is going on, please help me preguntas.blade.php @extends('app') @section('title', 'Pregunta:'.$nombrePregunta->titulo) @section('description', $nombrePregunta->categorias->nombre) @section('content') <div class="leading-loose max-w-4xl mb-4"> {{$nombrePregunta->body}}…

VIEW QUESTION

Laravel – Login Laravel – Passowrd HashBytes ('mD5')

public function masuk(Request $request) { $this->validate($request, [ 'USERNAME_ACC' => 'required', 'PASSWORD' => 'required' ]); $username=$request->get('USERNAME_ACC'); $password=$request->get('PASSWORD'); // $pass=HASHBYTES('md5',$password); // dd($pass); $cek_user = User::where('USERNAME_ACC',$request->USERNAME_ACC)->where('PASSWORD',DB::raw("HASHBYTES('md5','$password')"))->count(); // dd($result->toArray()); if ($cek_user==0) { return redirect('/login')->with('gagal','Username or Password Not Register'); }else { $user=User::where('USERNAME_ACC',$request->USERNAME_ACC)->where('PASSWORD',DB::raw("HASHBYTES('md5','$password')"))->first(); if (Auth::guard('web')->login($user)) {…

VIEW QUESTION
Back To Top
Search