mckenziearts / laravel-notify Goto Github PK
View Code? Open in Web Editor NEWFlexible Flash notifications for Laravel
License: Other
Flexible Flash notifications for Laravel
License: Other
Only show
<script> var notify = { timeout: "", animatedIn: "", animatedOut: "", position: "" } </script>
Hi,
When I use a Livewire component in the view, it doesn't work. When I remove a Livewire component, a notification appears on the website.
<!doctype html>
<html lang="en">
<head>
<!-- Scripts -->
<script src="{{ mix('js/app.js') }}" defer></script>
<!-- Styles -->
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
@livewireStyles
@notifyCss
</head>
<body>
<div>
@yield('content')
</div>
@include('notify::messages')
@livewireScripts
@notifyJs
@stack('scripts')
</body>
</html>
@extends('layouts.app')
@livewire('season.show')
@livewire('counter')
Is it possible to trigger notifications via an AJAX request?
Hi i would like to know if we can design our own custom notify alert boxes and add them to the notify service.
Not preset-messages
Can it be used on laravel nova?
hi.
I just finished upgrading laravel version with composer.
One of my project is using laravel-notify.
It got error after upgrading to laravel 8.45.1.
Following file was missing.
'vendor/mckenziearts/laravel-notify/resources/views/messages.blade.php'
please fix it.
When i add @notifyCss to my head its make changes to my styles actually changes are on the pictures. Can you please help me ?
This is my first time using Laravel-notify, I would like to change the position of the notification box from top-right to somewhere like button-right. Any ideas?
Hi, i use laravel 8.
I just tried to install it with composer. But i take an error.
`Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v8.1.0
- Conclusion: don't install laravel/framework v8.1.0
- mckenziearts/laravel-notify 2.x-dev requires illuminate/support ~7.0 -> satisfiable by illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0
, v7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3,
v7.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.27.0, v7.28.0, v7.28.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- mckenziearts/laravel-notify v2.0 requires illuminate/support ~7.0 -> satisfiable by illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0, v
7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3, v7
.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.27.0, v7.28.0, v7.28.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
- don't install illuminate/support 7.x-dev|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.3|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.4|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.5|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.6|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.7|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.0.8|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.1.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.1.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.1.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.1.3|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.10.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.10.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.10.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.10.3|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.11.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.12.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.13.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.14.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.14.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.15.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.16.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.16.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.17.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.17.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.17.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.18.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.19.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.19.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.2.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.2.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.2.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.20.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.21.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.22.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.22.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.22.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.22.3|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.22.4|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.23.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.23.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.23.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.24.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.25.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.26.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.26.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.27.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.28.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.28.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.3.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.4.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.5.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.5.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.5.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.6.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.6.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.6.2|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.7.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.7.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.8.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.8.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.9.0|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.9.1|don't install laravel/framework v8.1.0
- don't install illuminate/support v7.9.2|don't install laravel/framework v8.1.0
- Installation request for laravel/framework (locked at v8.1.0, required as ^8.0) -> satisfiable by laravel/framework[v8.1.0].
- Installation request for mckenziearts/laravel-notify ^2.0 -> satisfiable by mckenziearts/laravel-notify[2.x-dev, v2.0].
Installation failed, reverting ./composer.json to its original content.
`
How can i solve this error? Thanks.
-> hi
-> i tried use as regex custom validator
public function rules()
{
return [
'name' => 'required|string|min:3',
'email' => 'required|email',
];
}
public function messages()
{
$messages = [
'name.required' => notify()->error('Name must be filled.'),
'name.min' => notify()->error('Name must be at least 3 characters.'),
'name.regex' => notify()->error('Name must use Alphabet and space.'),
];
return $messages;
}
-> but get me
Object of class Mckenziearts\Notify\LaravelNotify could not be converted to string
-> help
i set my notify.php config to have 'position' => 'bottom-right',
but the notify still comes up in the top right, no matter where i set position to it always shows up in the top right corner of the browser.
Hello,
could you please add a variable to 'animate' config to manage the in_class delay before the animation start?
Thank you!
I am getting the following error while closing the notification. Please guide me about it.
app.js:38298 [Vue warn]: Property or method "show" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
(found in <Root>)
The notification window is displayed twice (during the load of the page and then when the page is fully loaded)
Do you have any idea how to prevent that?
Hi,
I'm using laravel 8 notify works very good, the only thing is that it fire one time very fast and diapered and after it comes "it suppose" the good one and sty there.
Can you help me ?
I put @notifyCss in my head / @notifyjs in my footer and <x:notify-messages /> in my blade page.
GET http://127.0.0.1:8000/vendor/mckenziearts/laravel-notify/css/notify.css net::ERR_ABORTED 404 (Not Found)
login:8 GET http://127.0.0.1:8000/vendor/mckenziearts/laravel-notify/js/notify.js net::ERR_ABORTED 404 (Not Found)
The Mix manifest does not exist. (View: /opt/lampp/htdocs/www/AuBoulot.com/vendor/mckenziearts/laravel-notify/resources/views/layout/app.blade.php) (View:
After Laravel 8 installed e laravel-notify installed too, I run artisan serve and access "notify/demo" route. At this time I see that error:
View [layout.app] not found. (View: /home/usuario/Projetos/Evaldo/Estudos/pr-l-notify/vendor/mckenziearts/laravel-notify/resources/views/notify.blade.php)
I think it is a call to a view that is extending a laravel-notify template instead of "layouts/app" default laravel template.
I will do a PR to fix it.
Is there any support to trigger the notification via javascript ?
Hi,
I'm not sure what is causing this.
I'm using Laravel 8, fresh install.
Got this in my template:
<head>
....
@notifyCss
</head>
<body>
@include('notify::messages')
@notifyJs
</body>
Also tried to change the location to the bottom-right, but it still show in upper right corner:
'position' => 'bottom-right',
Not sure what is causing this.
I think you should add higher z-index value, for the container, sometimes the message show at the back of navbar that has higher z-index value
solve with php artisan vendor:publish --provider="Mckenziearts\Notify\LaravelNotifyServiceProvider"
used double quotes not :php artisan vendor:publish --provider='Mckenziearts\Notify\LaravelNotifyServiceProvider'
I have an issue... The package is so beautifully designed that I want to cry!!!
Thank you kindly for making it, @mckenziearts!^_^
Could you please implement that the messages like this
<i class="flaticon-like"></i><span>{{ session()->get('notify.type') }}</span>
cannot be hardcoded, but read from the session like the title
<h4>{{ session()->get('notify.title') }}</h4>
?
Thanks!
sessions message is not destroying itself after displaying onces. if we click the back icon button on browser it will show the same message againg.
public function store()
{
notify()->success('Laravel Notify is awesome!');
return Redirect::route();
}
Big problem
this success message is shown again if we back the browser with browser back icon. Success message is not destroying itself after
displaying once.
it's sessions should be deleted after displaying success message and it is not deleting the session after displaying onces.
please you have to make the toast title editable like this:
notify()->success('Message', 'Title');
Close button don't work and icons don't display automatically, it show only when I copied a fonts folder on my public folder
Maybe it is just for me, but whatever I use, the notification it is always show up under the NavBar (top-right, top-left, center-top).
If I modify the CSS like this, it solve this:
.notify-alert { ... top: auto; ... }
.connectify-alert { ... top: auto; ... }
Do we have an option to set how long the notification is displayed and also the close button doesn't seem to work
Can we call it from inside a Notification/notifiable
It does not publish the required files by
php artisan vendor:publish --provider='Mckenziearts\Notify\LaravelNotifyServiceProvider'
I got this Only http://prntscr.com/pye0v7
Laravel 6.0
The box remains under the content, not being read. How to solve this?
Hi, is there any way to show a notification at a time?
Thank you.
Hello,
Thanks for such great package.
I am using it for my Laravel Package.
Btw, is there any way to create notification in javascript?
i try to integrate this into a livewire controller but dont get any resonse withing the function.
I call it like:
public function render() { notify()->success('Title was successfully rated.', 'Rating sucessfull'); return view('livewire.infobarrating'); }
but no notification is rendered on the blade.
what am i doing wrong?
Hi, hope you're fine.
This error appear when I try to close notify() or connectify() :
Uncaught DOMException: Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty. at http://www.something.local/vendor/mckenziearts/laravel-notify/js/notify.js:1:1901
Thanks for your help !
First of all, congratulations guys for your work.
When I integrate laravel-notify in my project, I can't close the fash notitication. Do you know why?
hi ,
thank you for this awesome package,
please i wanted to know if there is a timer to add to have the self-closing of the alert ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.