Skip to content

Instantly share code, notes, and snippets.

View charlie-nguyen-goldenowl-zz's full-sized avatar
🚀
Focusing

C charlie-nguyen-goldenowl-zz

🚀
Focusing
  • Golden Owl Company
  • Ho Chi Minh
View GitHub Profile
@charlie-nguyen-goldenowl-zz
charlie-nguyen-goldenowl-zz / massInsertOrUpdate.php
Created April 22, 2022 03:38 — forked from RuGa/massInsertOrUpdate.php
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows
@charlie-nguyen-goldenowl-zz
charlie-nguyen-goldenowl-zz / Laravel-Container.md
Created February 13, 2022 11:07
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Translations: Korean (by Yongwoo Lee)

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).

images

hien thi tat ca images

sudo docker images

xoa image

sudo docker rmi ten_image

container