<commit_before><?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\SluggableInterface;
use Cviebrock\EloquentSluggable\SluggableTrait;

class Career extends Model implements SluggableInterface
{
    use SluggableTrait;

    public $timestamps = false;
    protected $fillable = [ 'name' ];
    protected $sluggable = [ 'build_from' => 'name', 'save_to'    => 'slug' ];

    public static function getRules($id = '') {
      return [
        'name' => "required|unique:careers,name,{$id}|min:4|max:100"
      ];
    }

    public function courses() {
      return $this->belongsToMany('App\Course', 'careers_courses');
    }
}<commit_msg>hides pivot<commit_after><?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\SluggableInterface;
use Cviebrock\EloquentSluggable\SluggableTrait;

class Career extends Model implements SluggableInterface
{
    use SluggableTrait;

    public $timestamps = false;

    protected $fillable = [ 'name' ];

    protected $hidden = ['pivot'];

    protected $sluggable = [ 'build_from' => 'name', 'save_to'    => 'slug' ];

    public static function getRules($id = '') {
      return [
        'name' => "required|unique:careers,name,{$id}|min:4|max:100"
      ];
    }

    public function courses() {
      return $this->belongsToMany('App\Course', 'careers_courses');
    }
}
{'fraction_non_alphanumeric': 0.1353868194842407, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 3.867595818815331, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '54510', 'n_tokens_mistral': 483, 'n_tokens_neox': 469, 'n_words': 88}