12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Repositories;
- use App\Models\Behavior;
- use Illuminate\Support\Facades\Log;
- class BehaviorRepositories
- {
- public function __construct()
- {
- }
-
- public function getBehavior($identify)
- {
- $info = Behavior::where([['is_open', '=', 1], ['behavior_identification', '=', $identify]])->first();
- Log::debug('behavior:' . json_encode($info));
- if ($info) {
- return $info;
- }
- return [];
- }
- }
|