title: How can use Spatie add assign role to all users using seeder in laravel?
body: <p>I am using <strong>Spatie role-permission</strong> for handling user roles in an laravel application. I had created users using factory <code>factory(App\User::class, 50)-&gt;create();</code> and now some of the users are admin roles. I want to replace all role to supscriber and only one user is admin. </p>
  
  <p>I had created a seeder for generate admin user and added role for that one </p>
  
  <pre><code>$user = User::create([
      'name_first' =&gt; 'Admin',
      'email' =&gt; 'admins@admins.com',
      'password' =&gt; bcrypt('admins@admins.com')
  ]);
  
  $user-&gt;assignRole('super-admin');
  </code></pre>
  
  <p>How can achieve this with seeder? Or any other option is available for this ? </p>