title: how to add permission control in laravel with vue project?
body: <p>i'm adding vue js into my current laravel apps so i can make it SPA and thats mean laravel is only acting as backend and rest of it is controlled by vue js from rendering view to routing.</p>
  
  <p>My current laravel apps using <a href="https://github.com/kodeine/laravel-acl" rel="nofollow noreferrer">kodeine laravel-acl</a> for controlling which page and which action that my user can do by simply </p>
  
  <p>put this in route:</p>
  
  <pre><code>Route::get('admin', [
          'as'           =&gt; 'admins.admin.index',           
          'uses'         =&gt; 'UserController@index',
          'middleware'   =&gt; ['auth', 'acl'],
          'can'          =&gt; 'view.admin_view']);
  </code></pre>
  
  <p>and if i just do this in view to hide some action if user don't have permission</p>
  
  <pre><code>@permission('view.admin_view')
     //some link or button          
  @endpermission
  </code></pre>
  
  <p>and all these permission is stored in mysql database and each user have different set of permission.</p>
  
  <p>but how to do that if i making it vue js SPA? since all route is controlled via vue js?</p>