Skip to content

Refactoring create_function for php 7.2

I need to refactor a piece of php code to work with 7.2 but i am not sure if the way i did it is correct. I could use some info about it. This is the old code And this is the code i refactored for 7.2 Is it correct or did i mess up ? Answer You missed out

Why does Laravel API Resource data come this way?

I’m writing an API Resource. I think it’s about OOP. In the first code, the fullName field is empty, more precisely, only last_name comes. But in the second code it works exactly as I wanted it. What …

Laravel: mkdir(): Permission denied

I deployed my website to an apache webserver and try to make tinker work. I have the problem that I can’t use tinker in Laravel with my user (clashfinder), with the command php artisan tinker. I get …

Laravel form validation using where clause

I’m working on a small project using Laravel and everything is ok with me just i would like to know how can i add a where clause in my validation rule this my code : public function rules() { …