[share] Berbagai Error atau Notice Dalam Pengembangan Web Application dengan Laravel 5.4

Bismillah…

Karena lagi belajar Laravel, kadang sering muncul bbrp error yang sebenernya error tersebut lebih kepada OS (Khusus Pengguna GNU/Linux) .. dan halaman ini akan tersu bertambah, seeiring error yang gw alami, diantaranya:

(1/1) TokenMismatchException

in VerifyCsrfToken.php (line 68)

caranya:

$ rm -f {your_web_app}/storage/framework/sessions/*

,

Error in exception handler: The stream or file “/var/www/laravel/app/storage/logs/laravel.log” could not be opened

caranya:

  1. Cek dulu user defaultnya:ps aux | egrep '(apache|httpd)'
  2. Baru jalankan perintah ini:
    sudo chown -R $USER:www-data storage 
    sudo chown -R $USER:www-data bootstrap/cache
    chmod -R 775 storage
    chmod -R 775 bootstrap/cache
  3. Done
     php artisan cache:clear, php artisan view:clear, php artisan route:clear

 

(1/1) TokenMismatchException

in VerifyCsrfToken.php (line 68)

caranya:

php artisan cache:clear

sumber: https://github.com/laravel/framework/issues/16064

 

error: Your local changes to the following files would be overwritten by merge:
storage/logs/laravel.log
Please, commit your changes or stash them before you can merge.
Aborting

caranya:

  1. bisa dengan git reset –hard
  2. atau dengan
    truncate -s 0 /app/storage/logs/laravel.log
     sumber: https://stackoverflow.com/a/28392384

 

akan berlanjut …

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: