Skip to content

Instantly share code, notes, and snippets.

View OzanKurt's full-sized avatar
🍻
Cheers!

Ozan Kurt OzanKurt

🍻
Cheers!
View GitHub Profile
"initComplete": function () {
var api = this.api();
$('.dataTables_filter:first input').off('.DT').on('keyup.DT', function (e) {
if (e.keyCode == 13) {
api.search(this.value).draw();
}
});
},
@OzanKurt
OzanKurt / DatabaseNotificationCollection.php
Created December 9, 2016 06:58
Why don't we optimize database interactions?
<?php
namespace Illuminate\Notifications;
use Illuminate\Database\Eloquent\Collection;
class DatabaseNotificationCollection extends Collection
{
/**
* Mark all notification as read.