Laravel 5 roles and permissions (Bican/Roles)
<p>I'm trying to get roles and permissions to work properly, but I can't seem to get this right. I get an error while seeding the database:</p>

<p><code>[BadMethodCallException]
 Call to undefined method Illuminate\Database\Query\Builder::attachRole()
</code></p>

<p>I assume I'm doing something wrong, but I can't see what it would be.</p>

<pre><code>use Bican\Roles;
use Bican\Roles\Models\Role;
use Illuminate\Database\Seeder;
use Illuminate\Foundation\Auth\User;

class UserTableSeeder extends Seeder
{
    public function run()
    {
        // Create admin
        $adminRole = Role::where('name', '=', 'Admin')-&gt;first();
        $user = User::create([
            'name' =&gt; 'Admin',
            'email' =&gt; 'email@domain.com',
            'password' =&gt; bcrypt('Password99')
        ]);
        $user -&gt; attachRole($adminRole);
    }
}
</code></pre>

<p>What I try to use is this: <a href="https://github.com/romanbican/roles" rel="nofollow">https://github.com/romanbican/roles</a>
I followed the installation instructions and all went well until I was going to test it. The roles table seeder runs fine, and I can see the roles in the database. But I cant assing roles to users.</p>

<p>What am I doing wrong?</p>