「検索機能がおかしいです」

このコミットが含まれているのは:
守矢諏訪子 2021-12-25 01:36:53 +09:00
コミット 142894c91b
2個のファイルの変更16行の追加30行の削除

ファイルの表示

@ -549,7 +549,7 @@ class MeetingsController extends Controller {
$child_select = ['image'];
// 取得に成功
if (null === ($list = Meeting::select($meeting_select)->where('father_id', (int)$r->father_id)->where('title', 'LIKE', '%'.$r->keyword.'%')->orWhere('text', 'LIKE', '%'.$r->keyword.'%')->orderBy('updated_at', 'desc')->get())) {
if (null === ($list = Meeting::select($meeting_select)->where('title', 'LIKE', '%'.$r->keyword.'%')->orWhere('text', 'LIKE', '%'.$r->keyword.'%')->where('father_id', (int)$r->father_id)->orderBy('updated_at', 'desc')->get())) {
$list = [];
}
@ -596,7 +596,7 @@ class MeetingsController extends Controller {
$child_select = ['image'];
// 取得に成功
if (null === ($list = Meeting::select($meeting_select)->where('father_id', (int)$r->father_id)->where('title', 'LIKE', '%'.$r->keyword.'%')->orWhere('text', 'LIKE', '%'.$r->keyword.'%')->orderBy('updated_at', 'desc')->get())) {
if (null === ($list = Meeting::select($meeting_select)->where('title', 'LIKE', '%'.$r->keyword.'%')->orWhere('text', 'LIKE', '%'.$r->keyword.'%')->where('father_id', (int)$r->father_id)->orderBy('updated_at', 'desc')->get())) {
$list = [];
}

ファイルの表示

@ -4,38 +4,24 @@ namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
class DatabaseSeeder extends Seeder {
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call
(AdminsTableSeeder::class);
$this->call
(FathersTableSeeder::class);
$this->call
(EmailActivationsTableSeeder::class);
$this->call
(ChildrenTableSeeder::class);
$this->call
(TelActivationsTableSeeder::class);
$this->call
(FatherRelationsTableSeeder::class);
$this->call
(MeetingsTableSeeder::class);
$this->call
(MeetingImagesTableSeeder::class);
$this->call
(MeetingApprovalsSeeder::class);
$this->call
(LoginLimitsSeeder::class);
$this->call
(ContactsSeeder::class);
$this->call
(SmssSeeder::class);
public function run () {
$this->call(AdminsTableSeeder::class);
$this->call(FathersTableSeeder::class);
$this->call(EmailActivationsTableSeeder::class);
$this->call(ChildrenTableSeeder::class);
$this->call(TelActivationsTableSeeder::class);
$this->call(FatherRelationsTableSeeder::class);
$this->call(MeetingsTableSeeder::class);
$this->call(MeetingImagesTableSeeder::class);
$this->call(MeetingApprovalsSeeder::class);
$this->call(LoginLimitsSeeder::class);
$this->call(ContactsSeeder::class);
$this->call(SmssSeeder::class);
}
}