Git Product home page Git Product logo

alerts's Introduction

Alerts

Build Status Software License Latest Version on Packagist Total Downloads

Alerts allows you to easily pass alerts to your Laravel views.

An open source package by Cartalyst, code well, rock on!

Version Matrix

Version Laravel PHP Version
8.x 11.x >= 8.2
7.x 10.x >= 8.1
6.x 9.x >= 8.0
5.x 8.x >= 7.3
4.x 7.x >= 7.2.5
3.x 6.x >= 7.2
2.x 5.x >= 5.4.0
1.x 4.1 - 4.2 >= 5.4.0

Documentation

Reader-friendly documentation can be found here.

Using the package, but you're stuck? Found a bug? Have a question or suggestion for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

Contributing

Thank you for your interest, here are some of the many ways to contribute.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

This software is released under the BSD 3-Clause License.

alerts's People

Contributors

anisi avatar brunogaspar avatar propaganistas avatar suwardany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alerts's Issues

Tag and release.

Tag and release latest commits to get it work with L5.2. Thank you!

Alert::get() is empty

Your Environment

  • Laravel Version: 8.38.0
  • OS and Version: Ubuntu 20
  • PHP Version: 8.0.3
  • Alerts Version: 5.1.0

Expected behaviour

Following the guide after setting in my Controller Alert::error('error message'); in blade App:get() should contain the alert.

Actual behaviour

What is is happening is that in blade App:get() gives and empty array.

My .env file contains session and cache as below:
CACHE_DRIVER=file
SESSION_DRIVER=file

This has been tested in a newly fresh Laravel project.
Am I missing some configuration?

Alert::get() is empty

Hi
I have these lines in controller:

Alert::success('زبان مورد نظر با موفقیت حذف شد.');
return back();

And these in view:

@foreach (Alert::get() as $alert)
    <ul>
        <li class="alertclass="alert alert-{{ $alert->class }}">{{ $alert->message }}</li>

    </ul>
@endforeach

but Alert::get() is always empty. All settings are default and my session driver is file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.