// creating post
$post = Post::create($attributes);
// publish post
$post->published_at = now();
$post->save();
Created
May 26, 2019 07:48
-
-
Save AhmadWaleed/5cf5d030f97b8eae0568ae61a47bd7b4 to your computer and use it in GitHub Desktop.