php and laravel application problem solving