skip to Main Content

Laravel 11 – This password does not use the Bcrypt algorithm

Error during Auth::attempt($credentials) . Followed https://laravel.com/docs/11.x/authentication#authenticating-users I've created simple seeder: $hashedPassword = Hash::make('password'); User::factory()->create([ 'name' => 'Admin User', 'login' => 'admin', 'password' => $hashedPassword, 'role' => 'Admin', ]); Phpmyadmin I am trying to log in user with public function loginUser(Request…

VIEW QUESTION

Only broken image icon is displayed instead of generated QR code in Laravel app (used SimpleSoftwareIOQrCode))

The route: Route::get('/generated',[QRCodeController::class,'generate'])->name('qr.generateqrCode'); In the controller: public function generate(Request $request){ $data = $request->input('data'); $size = $request->input('size'); $qrcode = QrCode::size($size)->generate($data); // Convert the QR code image to base64 for embedding in HTML $qrcodeBase64 = base64_encode($qrcode); // Pass the base64-encoded QR code…

VIEW QUESTION

The GET method is not supported for route new-order-form. Supported methods: POST. LARAVEL

Please help me! I don't know where am I wrong? web.php: Route::post('new-order-form', [OrderController::class, 'showNewOrderForm'])->name('new.order.form'); OrderController.php: public function showNewOrderForm() { $products = SanPham::all(); $employees = Employee::all(); return view('order.new_order_form', compact('products', 'employees')); } /order/new_order_form.blade.php /order/order.blade.php: $(document).ready(function(){ // Hiển thị form tạo đơn hàng…

VIEW QUESTION
Back To Top
Search