initial copy from NOD Laravel