How to make sql join query in laravel 5?
问题 Hi I want to get data from database, I am using join query but I have got this error: QueryException in Connection.php line 673: SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'surat_masuk' (SQL: select jenis_surat . jenis_surat , surat_masuk . nomor_surat , surat_masuk . perihal , surat_masuk . tanggal_publish from surat_masuk inner join jenis_surat on id_jenis_surat = jenis_surat . id_jenis_surat inner join surat_masuk on id_jenis_surat = surat_masuk . id