gully/core

Gully paketi için core istemcileri barındıran paket. Bu paket olmadan Gully adına hiç bir veri çalıştırılamaz.

This package's canonical repository appears to be gone and the package has been frozen as a result.

Maintainers

Details

git.sistemim.com.tr/gully/core

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Type:pagekit-extension

1.0.9 2020-03-13 10:04 UTC

This package is not auto-updated.

Last update: 2025-04-11 13:35:51 UTC


README

Permissions

core: owner -> Perm access at every pages
core: editor -> Cannot delete but does everything
core: pr-manager -> Cannot delete, Cannot change password just does information update

Nedir?

Gullynin kernel paketidir. Login işlemleri ve sürekli tüm widgetlerin erişebileceği helperlar yada model sınıfları bu paketde derlenmişt.r

Kullanışlı Paketler?

  • Mail template bu paketde tanımlanmıştır.
  • Login bu paketde tanımlanmıştır.
  • Notification bu paketde tanımlanmıştır.
  • Kullanıcı ekle çıkar güncelle node'u bu paketde tanımlanmıştır.

Notifications Kullanımı

Bu fonksiyonlar ile istediğiniz kullanıcı(lar)'ya mail ve notification ile bildirim gönderebilirsiniz. Kullanımı aşağıdaki şekildedir.

$query = User::where('id = ?' , [1])->get();
$notifications = new NotificationHelper;
$notifications->title('Mesajınızın Başlığını Buraya Yazın');
$notifications->content('Mesaj İçeriğiniz Buraya Yazılır');
$notifications->from(App::user()->id); // Kim tarafından gönderildiyse ID
$notifications->where($query); // Kimlere gidicekse yukarıdaki user querysi gibi
$notifications->extraContent([ 
	'<p>Pellentesque efficitur cursus ipsum eu tristique</p>',
	'<p>Phasellus finibus, dolor sit amet consectetur</p>',
	'<p> Maecenas massa diam</p>'
]); // Eğer mailde ekstra HTML içerik eklemek istiyorsanız bu şekilde
$notifications->redirect('/' , 'Hadi Gel'); // Eğer tıklanılacak bir şey varsa ilk parametre URL ikincisi ise buton yazısı olmalı. url için App::view()->url('url' , , true) kullanılırsa https://gully.com.tr şeklinde full base gelir
$notifications->allSend(); // 

3 Tamamlayıcı vardır. İlki: $notifications->allSend(); hem mailden hemde notificationa kayıt yapar. İkinci: $notifications->sendMail(); sadece mail, $notifications->sendNotification(); ise sadece notifications gönderir.