Skip to content
Advertisement

Tag: laravel

How Can I Get False in Auth::attempts Laravel

I Have AuthController, with this code and i Hash with my Own Hash, and when i dump the $credentials, the value is correct. but when i dump Auth::attempt($credentials) i got false result. Answer Using your own hash function for authentication isn’t as straight forward as implementing a custom hash function and dropping it in place. The entire process is more

how to exclude a rule in laravel validation

I am building a user’s resignation inside the dashboard with Form Request Validation. it works well in store resource, but I need to exclude the password role in updating resource, so if the user leaves it empty I will store the old password my validation file Answer In this case just use ‘sometimes’ for updating password and not ‘required’. Validating

Laravel error while sending a queue email

I’m facing the following error in the failed_jobs database table: ErrorException: Undefined property: stdClass::$subscription in /home/sm/public_html/app/Mail/NewCustomer.php:45 This is pretty basic. It means the property $subscription does not exists, but…the problem is that I don’t call $subscription anywhere in the class code. In the controller I assign the values: And the NewCustomer class contains: The view mails/new_customer also does not contain

Value Old Does Not Work Out When The Form Refreshes

I’m working with Laravel 5.8 and I wanted to add value old() so that when user fills out form and the form gets refreshes (if any error occured), the old value appears as value of input: But now the problem is, it does not show the Old value of user however the form input is filled once. So how to

Advertisement