I have a coloumn in my database named using camelCase convention how should i put it in the mutator naming to work ?
migration
public function up() { Schema::create('skillTypes', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->boolean('needRating'); $table->timestamps(); }); } I named it like that but didnt work and also named it setNeedRatingAttribute and didnt work either
the mutator
public function setneedRatingAttribute($input){ if($input==null){ $input=false; } else{ $input=true; } $this->attributes['needRating']=$input; }