Kira-kira kalo muncul pesan kaya gini errornya dimana yaa?

 Illuminate\Database\QueryException

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laboratorium_app.items' doesn't exist (SQL: alter table `items` add `unit_id` bigint unsigned null, add `place_id` bigint unsigned null, add `comment_id` bigint unsigned null, add `log_id` bigint unsigned null)

  at C:\xampp\htdocs\laboratorium-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:692
    688▕         // If an exception occurs when attempting to run a query, we'll format the error
    689▕         // message to include the bindings with SQL, which will make this exception a
    690▕         // lot more helpful to the developer instead of just the database's errors.
    691▕         catch (Exception $e) {
   692▕             throw new QueryException(
    693▕                 $query, $this->prepareBindings($bindings), $e
    694▕             );
    695▕         }
    696▕     }

   A table was not found: You might have forgotten to run your migrations. You can run your migrations using `php artisan migrate`.
    https://laravel.com/docs/master/migrations#running-migrations

  1   C:\xampp\htdocs\laboratorium-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:485
      PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laboratorium_app.items' doesn't exist")

  2   C:\xampp\htdocs\laboratorium-app\vendor\laravel\framework\src\Illuminate\Database\Connection.php:485
      PDOStatement::execute()
avatar 20_sindiayuanggraeni
@20_sindiayuanggraeni

5 Kontribusi 0 Poin

Diperbarui 3 tahun yang lalu

Tanggapan

Sesuaikan judul dengan pertanyaan kamu ya. Baca aturan main cara membuat judul yang baik

2 Jawaban:

<pre>salah manggil tabel di database cobak teliti lagi pemanggilan nama tabael nya</pre>

avatar Alfriansyah1
@Alfriansyah1

1 Kontribusi 0 Poin

Dipost 3 tahun yang lalu

<div>Salah panggil tabel, dikoreksi lagi mungkin&nbsp;</div>

avatar Ihzarizky
@Ihzarizky

39 Kontribusi 9 Poin

Dipost 3 tahun yang lalu

Login untuk ikut Jawaban