trying to fix some errors with laravel