This commit is contained in:
2024-07-03 14:41:15 +03:00
commit ec69208f05
1892 changed files with 181728 additions and 0 deletions

13
app/controllers/Posts.php Normal file
View File

@ -0,0 +1,13 @@
<?php
namespace Controllers;
use Models\Post;
class Posts
{
public static function create_post($post, $user_id)
{
return Post::create(['post'=>$post, 'user_id'=>$user_id]);
}
}