File: /home/imensosw/.trash/app.1/Models/Chat.php
<?php
/**
* ChatModel class file
*
* PHP Version 7.2
*
* @category Model
* @package Ez
* @author Imenso Software <admin@imensosoftware.com>
* @license http://imensosoftware/license.php GNU Public License
* @link http://imensosoftware.com/recipes
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use DB;
/**
* ChatModel class
*
* The class manage Chat related queries
*
* @category ChatModel
* @package Ez
* @author Imenso Software <admin@imensosoftware.com>
* @license http://imensosoftware/license.php GNU Public License
* @link http://imensosoftware.com/recipes
*/
class Chat extends Model
{
public $table = 'chat_massages';
public $fillable = [
'message',
'attachment'
];
/**
* GetMessages gets the list of evaluations and
* return evaluations list.
*
* @param array data
* @return \App\Models\Message
*/
public static function getMessages($data)
{
$messages = self::select(
'chat_massages.*'
)->get();
return $messages;
}
// end getEvaluations()
}
// end class