gully/core

Gully 包的核心客户端包。没有这个包,无法运行任何以 Gully 为名的数据。

维护者

详细信息

git.sistemim.com.tr/gully/core

安装: 0

依赖项: 0

建议者: 0

安全: 0

类型:pagekit-extension

1.0.9 2020-03-13 10:04 UTC

This package is not auto-updated.

Last update: 2024-09-27 11:12:04 UTC


README

权限

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

是什么?

Gully 的内核包。登录操作以及所有小工具可以访问的辅助函数或模型类都包含在这个包中。

有用的包?

  • 邮件模板在此包中定义。
  • 登录在此包中定义。
  • 通知在此包中定义。
  • 用户增删改查节点在此包中定义。

通知使用

使用以下函数可以向指定的用户发送邮件和通知。用法如下。

$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(); // 

有三个完成器。第一个:$notifications->allSend();同时为邮件和通知注册,第二个:$notifications->sendMail();只发送邮件,$notifications->sendNotification();则只发送通知。