public static function findIdByNama($nama) { $koperasi = Koperasi::where('nama', $nama)->first(); return $koperasi->id; }