E
E
EVOSandru62018-03-18 20:33:36
Laravel
EVOSandru6, 2018-03-18 20:33:36

Why in Laravel 5.5 Eloquent model can not get all the records from the table?

Good afternoon, there is such a problem: There are several records in the users
table : 1 user1 [email protected] 2 user2 [email protected] 3 user3 [email protected] 4 user4 [email protected] 5 user5 [email protected] 6 user6 [email protected] 7 user7 [email protected] But when I try: Only 3 records are pulled out: 2 user2 [email protected] 3 user3 [email protected] 7 user7 [email protected] I don't catch the regularity. Maybe someone will tell?
$users = User::get();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVOSandru6, 2018-03-18
@EVOSandru6

Sorry. Case in deleted_at

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question