Rebuilding a Codeigniter app with Laravel and modern optimizations