title: how to add an admin in laravel 5.1 auth manually from database
body: <p>any body has any idea how to pass the authentication of laravel ? or to add an admin from database or the source code ? assuming you have created an admin panel and an admin user but you lost your database and now you just want to create a new admin user for your panel . i used default laravel authentication and middle ware for admin panel . here is the middle ware added in kernel.php</p>
  
  <pre><code>        'admin' =&gt; \App\Http\Middleware\AuthAdmin::class,
  </code></pre>
  
  <p>and here we got role controller</p>
  
  <pre><code> if(Auth::user()-&gt;isSuperAdmin()) {
          $objects = Role::select($this-&gt;dt_fields_db)-&gt;where('id','&lt;&gt;',1)-&gt;where('id','&lt;&gt;',3);
      } else {
          $objects = Role::select($this-&gt;dt_fields_db)-&gt;where('id','&gt;',3);
      }
  </code></pre>