Added laravel plugin, got rid of not working g() function and added $path var initialization