<?php
namespace ZaLaravel\LaravelUser\Models;

use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Database\Eloquent\Model;
use ZaLaravel\LaravelUser\Models\Role;
use ZaLaravel\LaravelUser\Models\Interfaces\UserInterface;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract, UserInterface
{

    use Authenticatable, CanResetPassword;

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'users';

    protected $fillable = ['user_name', 'email', 'password', 'blocked'];
    protected $guarded = ['_token'];
    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = ['password', 'remember_token'];

    /**
     * Get the roles a user has
     */
    public function roles()
    {
        return $this->belongsToMany('ZaLaravel\LaravelUser\Models\Role', 'users_roles');
    }

    /**
     * Find out if user has a specific role
     *
     * $return boolean
     */
    public function hasRole($check)
    {
        return in_array($check, array_fetch($this->roles->toArray(), 'name'));
    }

}

<?php
namespace ZaLaravel\LaravelUser\Models;

use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Database\Eloquent\Model;
use ZaLaravel\LaravelUser\Models\Role;
use ZaLaravel\LaravelUser\Models\Interfaces\UserInterface;

class User extends Model implements AuthenticatableContract, CanResetPasswordContract, UserInterface
{

    use Authenticatable, CanResetPassword;

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'users';

    protected $fillable = ['name', 'email', 'password', 'blocked'];
    protected $guarded = ['_token'];
    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = ['password', 'remember_token'];

    /**
     * Get the roles a user has
     */
    public function roles()
    {
        return $this->belongsToMany('ZaLaravel\LaravelUser\Models\Role', 'users_roles');
    }

    /**
     * Find out if user has a specific role
     *
     * $return boolean
     */
    public function hasRole($check)
    {
        return in_array($check, array_fetch($this->roles->toArray(), 'name'));
    }

}

Change fillable user_name to name in model
Change fillable user_name to name in model
