Skip to content

Tag: laravel

Default hash type of passwords in Laravel

What type of hashing algorithm is used by default for passwords in Laravel. If we want to change the password in the database then how can we identify the hash type of the password? Answer According to Laravel Documentation : The Laravel Hash facade provides secure Bcrypt hashing for storing user passwords. I…

Laravel custom db driver

i know there is a nice way of defining connections via app/config/database.php . But i don’t think there is a driver for me available. Imagine my db is read from file, like a txt. (Yeah! that’s my client db, sort of). So in that file, before I i need a real driver! Currently it uses a txt base db …

How to update cart options in LaraveShoppingcart by Crinsane

I’m using laravel cart by Crinsane https://github.com/Crinsane/LaravelShoppingcart I wanna update options cart, I have many options inside, but I just want only one option to change, and I cannot do it Here’s my code and then I want to change options Here’s my code and then the result option…

Laravel Dusk – Class config does not exist

recently upgraded a 5.3 project to 5.4 and all seemed good. Today I started to implement Dusk however had hit an issue when running the example test I’ve had a look at line 40 of TestCase.php and its So it does look like something to do with the global config helper anybody have any ideas? I’m run…

How to save uploaded image to Storage in laravel?

I am using Image intervention to save an image to the storage folder. I have the code below and it seems to just save a file name with a blank image. I think I need a way for the file contents to be written to the folder but struggling for the snippet. Answer You need to do