Merge pull request #204 from nakazawakan/backend

「検索機能がおかしいです」
このコミットが含まれているのは:
chankan77 2021-12-25 02:02:54 +09:00 committed by GitHub
コミット 59ae579a5b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
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);
}
}