Laravel
Always hash passwords using Laravel's built-in Hash facade. Never store plain-text passwords in your database.
CODE SAMPLE
Code snippet
use Illuminate\Support\Facades\Hash;
// Storing a hashed password
$user->password = Hash::make($request->input('password'));
$user->save();
// Verifying a hashed password
if (Hash::check($request->input('password'), $user->password)) {
// Password is valid
}
More engineering notes
Remove Composer Package
Removing an installed Composer package from your PHP or Laravel project. Let's consider you want to...
Handling Dates with Carbon Date Helpers
Carbon Helper simplifies working with dates, making it easier to perform common tasks like formattin...