Category: Laravel
Laravel: Login with email or phone
Danyal March 18, 2021
How to login with phone or email in Laravel passport?
Posted in Code snippets, Laravel, PHP, Programming Tagged Authentication, LaravelPassport, login
Laravel: Raw query for between operator
Danyal December 8, 2020
Example for raw query of between operator.
Laravel: update vs fill
Danyal December 7, 2020
Let’s take a look at the difference between update and fill of Eloquent methods.
Tip: Default current timestamp to Laravel migration
Danyal November 10, 2020
Quick tip of the day, how to add default datetime to migration.
Posted in Laravel Tagged database, migration, tip of the day
Traits in PHP and Laravel?
Danyal August 6, 2020
This is a fact that in PHP you can only have single inheritance. That means a class can inherit from only one other class.
Posted in Laravel, PHP Tagged best practice, clean code, coding, OOP, php
Laravel: Usage of old() in form when editing
Danyal April 25, 2020
Best practice to show old value when editing a form in Laravel?
Lumen/Lumen: Create & Check Password
Danyal April 15, 2020
Laravel/Lumen comes with Hash facade that provides the secure Bcrypt & Argon2 hashing for storing user string passwords.
Posted in Laravel Tagged Authentication, hash, login, password
What is the difference between a model and a repository
Danyal July 5, 2019
Repository actually allows you to separate your business logic from database layer (Model). Repository/Entity are…
Posted in Databases, Eloquent, Laravel, PHP, Symfony, Tips, Uncategorized Tagged Eloquent, Entity, laravel, Laravel 5.6, Models, Repository, Symfony, Symfony 4