The function definition needs to return what you define as the return type. If you want to return nothing set the return type to 'void'.
In response to @JaiveerChavda
In response to @MrPunyapal
I would go through the bootcamp bootcamp.laravel.com