Uxweb 1 2

broken image


A simple PHP package to show Sweet Alerts with the Laravel Framework

Maintainers Details

Installs: 662 243

I am upgrading from Laravel 5.3 to Laravel 5.4. Problem is that when I run composer update and when it comes to php artisan optimize part, I get an error: SymfonyComponentDebugException. Transfer 1.2.1 macOS 3.3 Mb Transfer is a reliable and fully RFC-compliant TFTP server application. The perfect alternative to the built-in TFTP server on your Mac. نسخه: 1.3 0 از 0 نظر UXWeb نام نرم افزاریست که در آن به راحتی و سادگی هر چه تمام تر وب سایت خود را طراحی و پیاده سازی میکنید. How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating) There are two main modes to run the Let's Encrypt client (called Certbot). Standalone: replaces the webserver to respond to ACME challenges; Webroot: needs your webserver to serve challenges from a known folder.; Webroot is better because it doesn't need to replace Nginx (to bind to port 80). Uxweb 1.2 DownloadUxweb 1.2 InchesUxweb 1.2 OzUxweb 1.2 CupUXWeb 1.3 Mac OS X 9 MB. Nov 21, 2017 What's New in Version 1.2. Now Available for iOS & macOS on the App Store! Welcome to the second major update of UXWeb™ – now with more themes.

Dependents: 13

Suggesters: 0

Security: 0

Stars: 744

Tublme 1 0 1 – beautiful tumblr desktop client. Watchers: 29

Forks: 180

Open Issues: 10

Requires

  • php: >=7.0
  • illuminate/session: ~5.0|^6.0|^7.0|^8.0
  • illuminate/support: ~5.0|^6.0|^7.0|^8.0

Requires (Dev)

  • friendsofphp/php-cs-fixer: ^2.16
  • mockery/mockery: ^1.0
  • phpunit/phpunit: ^7.0

Suggests

None

Provides

None

Conflicts

None

This package is auto-updated.

Last update: 2021-02-15 00:19:31 UTC

Installation

Require the package using Composer.

If using laravel < 5.5 include the service provider and alias within config/app.php.

Installing Frontend Dependency

This package works only by using the BEAUTIFUL REPLACEMENT FOR JAVASCRIPT'S 'ALERT'.

Using a CDN

Using Laravel Mix

Install using Yarn

Install using NPM

Require sweetalert within your resources/js/bootstrap.js file.

Then make sure to include your scripts in your blade layout. Remove the defer attribute if your script tag contains it, defer will delay the execution of the script which will cause an error as the sweet::alert blade template is rendered first by the browser as html.

Finally compile your assets with Mix

Usage

Using the Facade

First import the SweetAlert facade in your controller.

Within your controllers, before you perform a redirect..

Here are some examples on how you can use the facade:

Using the helper function

alert($message = null, $title = ')

In addition to the previous listed methods you can also just use the helperfunction without specifying any message type. Doing so is similar to:

alert()->message('Message', 'Optional Title')

Like with the Facade we can use the helper with the same methods:

Within your controllers, before you perform a redirect..

For a general information alert, just do: alert('Some message'); (same as alert()->message('Some message');).

Using the Middleware

Uxweb 1 2019

Middleware Groups

Ux Web 1 2 Pro

First register the middleware in web middleware groups by simply adding the middleware class UxWebSweetAlertConvertMessagesIntoSweetAlert::class into the $middlewareGroups of your app/Http/Kernel.php class:

Make sure you register the middleware within the 'web' group only.

Route Middleware

Or if you would like to assign the middleware to specific routes only, you should add the middleware to $routeMiddleware in app/Http/Kernel.php file:

Next step: within your controllers, set your return message (using with()) and send the proper message and proper type.

or

NOTE: When using the middleware it will make an alert to display if it detects any of the following keys flashed into the session: error, success, warning, info, message, basic.

Final Considerations

By default, all alerts will dismiss after a sensible default number of seconds.

But not to worry, if you need to specify a different time you can:

Also, if you need the alert to be persistent on the page until the user dismiss it by pressing the alert confirmation button:

You can render html in your message with the html() method like this:

Customize

Config

If you need to customize the default configuration options for this package just export the configuration file:

A sweet-alert.php configuration file will be published to your config directory. By now, the only configuration that can be changed is the timer for all autoclose alerts.

View

If you need to customize the included alert message view, run:

The package view is located in the resources/views/vendor/sweet/ directory.

You can customize this view to fit your needs.

Configuration Options

Uxweb 1 2 Math

You have access to the following configuration options to build a custom view:

Please check the CONFIGURATION section in the website for all other options available.

Default View

The sweet_alert.alert session key contains a JSON configuration object to pass it directly to Sweet Alert.

Uxweb

Note that {!! !!} are used to output the json configuration object unescaped, it will not work with {{ }} escaped output tags.

Custom View

This is an example of how you can customize your view to fit your needs:

Note that you must use ' (double quotes) to wrap the values except for the timer option.

Tests

To run the included test suite:

Demo

License

Sweet Alert for Laravel is open-sourced software licensed under the MIT license.





broken image