findAll(): It gives us a list of active record models that match the specified conditions.

Admin::findAll(['type' => 'client', 'status' => 1]);

find(): It returns a single record using the primary key.

Admin::find(['id' => 1]);

Suggest An Answer

No suggestions Available!