Category: Laravel


Laravel: Login with email or phone

How to login with phone or email in Laravel passport?

 Posted in Code snippets, Laravel, PHP, Programming Tagged , ,

Laravel: Raw query for between operator

Example for raw query of between operator.

 Posted in Laravel Tagged , , , ,

Laravel: update vs fill

Let’s take a look at the difference between update and fill of Eloquent methods.

 Posted in Daily Tips, Laravel Tagged , , , ,

Tip: Default current timestamp to Laravel migration

Quick tip of the day, how to add default datetime to migration.

 Posted in Laravel Tagged , ,

Traits in PHP and Laravel?

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 , , , ,

Laravel: Usage of old() in form when editing

Best practice to show old value when editing a form in Laravel?

 Posted in Daily Tips, Laravel, Tips Tagged , ,

Lumen/Lumen: Create & Check Password

Laravel/Lumen comes with Hash facade that provides the secure Bcrypt & Argon2 hashing for storing user string passwords.

 Posted in Laravel Tagged , , ,

What is the difference between a model and a repository

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 , , , , , , ,

Configure Redis with Laravel/Lumen 5.8

What is Redis Redis is a storage server that stores data in memory for very…

 Posted in Laravel, Laravel 5.5, Lumen, Uncategorized Tagged , , , , ,

Connect Laravel to remote MySql DB with SSH

Quick way of connecting remote database with SSH key, will be by running SSH tunnel….

 Posted in Laravel, Laravel 5.5, Uncategorized Tagged , , , , , , ,