$user = new User('[email protected]');
$user->addPost(
new Post('Yet another Medium article')
);
Cycle::transaction()->persist($user)->run();
mrakolice / laracycle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from panda-madness/laracycle
Basic Cycle ORM implementation for the Laravel framework