12345678910111213141516171819202122232425 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\DB;
- class UserMessage extends Model
- {
- protected $table = "user_message";
- public static function addFeedBack(Request $request)
- {
- return DB::table('user_message')->insert([
- // 'user_id'=>User::getCurrentUser()->id,
- 'user_id' => 0,
- 'message' => $request->input('message'),
- 'version' => $request->header('version'),
- 'created_at' => time(),
- 'updated_at' => time(),
- ]);
- }
- }
|