skip to Main Content

Does usort() behave differently in php 8.2.0 vs php 7.4.33?

I have an associate array like this: $all_works = [ ["title"=>"A Children’s Story", "year"=>"2024"], ["title"=>"Occurred during the Day", "year"=>"2021"], ["title"=>"Future and Past", "year"=>"2021"], ["title"=>"Future and History", "year"=>"2020"], ["title"=>"Open the School, Close the Studio", "year"=>"2023"], ["title"=>"To Reconstruct, To Rebuild", "year"=>"2024"], ["title"=>"Eyeglasses,…

VIEW QUESTION

Empty request parameters in Laravel 10

I have a strange problem with my project in Laravel 10. My $request comes empty in my controller. Controller public function postSettings(Request $request){ $user = $request->user(); $request = $request->validate([ 'scroll_lock' => 'boolean', 'test_mode' => 'boolean', ]); $settings = Settings::find($user->id) ?…

VIEW QUESTION
Back To Top
Search