Skip to content

Instantly share code, notes, and snippets.

🍻
Cheers!

Ozan Kurt OzanKurt

🍻
Cheers!
View GitHub Profile
View Datatables Search on Enter.js
"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 Dec 9, 2016
Why don't we optimize database interactions?
View DatabaseNotificationCollection.php
<?php
namespace Illuminate\Notifications;
use Illuminate\Database\Eloquent\Collection;
class DatabaseNotificationCollection extends Collection
{
/**
* Mark all notification as read.
You can’t perform that action at this time.