firstOrCreate() model method and how it provides you first instance from table if exists or create new table records if does not exists. You don’t need to explicitly save like firstOrNew().firstOrNew() model method and how it is useful. It provides you first instance from table if exists or create new model instance. You need to explicitly save model instance.apt command.apt.Software Center or with apt.snap package or with apt.