igfs/app/controllers/Posts.php

13 lines
199 B
PHP
Raw Normal View History

2024-07-03 14:41:15 +03:00
<?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]);
}
}