Added Use Illuminate\Support\Str;

And then ran $name through Str::studly() as $this->module->has() was always returning false.

fixes issue https://github.com/pingpong-labs/modules/issues/24