Update PHP version requirement to ^8.2 in composer files, refactor User model access control logic, clean up MainSectionResource, enhance EditMainSection to include related pages, modify AppServiceProvider to clear subsection cache, change fallback locale to 'en', and improve DesktopNavBar and BasicFooter components for better accessibility and content accuracy.
This commit is contained in:
@@ -32,7 +32,7 @@ class EditMainSection extends EditRecord
|
||||
$this->subSection_ids = SubSection::query()->where('main_section_id', '=', $this->record->id)->pluck('id')->toArray();
|
||||
SubSection::query()->where('main_section_id', '=', $this->record->id)->update(['main_section_id' => NULL]);
|
||||
SubSection::whereIn('id', $this->subSection_ids)->update(['main_section_id' => $this->record->id]);
|
||||
$subSections = SubSection::query()->where('main_section_id', '=', $this->record->id)->get();
|
||||
$subSections = SubSection::query()->where('main_section_id', '=', $this->record->id)->with('pages')->get();
|
||||
|
||||
foreach ($subSections as $subSection) {
|
||||
foreach ($subSection->pages as $page) {
|
||||
|
||||
Reference in New Issue
Block a user