This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | First you need to do two things: | |
| You need to check if php rewrite module is enabled. you can do it with phpinfo(). Write this in a file info.php and open in browser: http://localhost/info.php | |
| Now search for mod_rewrite. If you see mod_rewrite in this page that means, mod_rewrite is enabled. | |
| If mod_rewrite is not enabled, enable it. I enabled in in ubuntu 18.04 for apache with this command: $ sudo a2enmod rewrite. Then restart apache2 $ systemctl restart apache2 | |
| if mod_rewrite is enabled, then other configuration will work. | |
| Then add AllowOverride All in .conf file: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd /etc/apache2/sites-available | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Edit config.inc.php | |
| Location : /usr/share/phpmyadmin/config.inc.php | |
| Find for the blow code | |
| $cfg['Servers'][$i]['auth_type'] = 'cookie'; | |
| And replace the line of code by blow code | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Http\Controllers\admin; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use App\ProductCategory; | |
| use App\Product; | |
| use Auth; | |
| use Image; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php // add this file in app/config/ folder | |
| return ['userRole' => | |
| ['admin' => 1, | |
| 'client' => 2, | |
| ], | |
| 'userStatus' => | |
| ['pending' => 0, | |
| 'active' => 1, | |
| 'banned' => 9, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo apt-get clean | |
| sudo apt-get -f autoremove | |
| sudo service mysql start | |
| delete log files | |
| sudo find /var/log -type f -regex ".* | |
| \.gz$" -delete | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $(document).on('focusin', function(e) { | |
| if ($(event.target).closest(".mce-window").length) { | |
| e.stopImmediatePropagation(); | |
| } | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | master branch and 'origin/master' have diverged | |
| Solution | |
| git reset --hard origin/master | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Vue.http.interceptors.push(function (request, next) { | |
| request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken; | |
| next(); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Fix : need to add id: "vagrant-root", disabled: true | |
| config.vm.synced_folder "D:/Projects/www/server", "/vagrant/", id: "vagrant-root", disabled: true | 
NewerOlder