Code Monkey home page Code Monkey logo

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

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.

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?

Tag and release.

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

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.