Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

devsrv/aquastrap

Repository files navigation

Laravel Aquastrap

NOT YET READY

Config

add @aquasync at the bottom of <head>

<html>
  <head>
      ...
      @aquasync
  </head>
    ...
</html>

Usage

From Component Blade View

@aqua($drips).delete({id: 1})

@aquaconfig($drips).onSuccess()..

{{ $aquaroute('delete') }}

JS

Aquastrap.onSuccess((res) => console.info('successful', res)).onError((err) => console.warn('something went wrong', err));
Aquastrap.component('profile').saveUser({id: 1, 'fname': 'rav'})
Aquastrap.component('cart').routes.delete
Aquastrap.component('cart').onSuccess()..

Examples

all examples can be found here

👋🏼 Say Hi!

Leave a ⭐ if you find this package useful 👍🏼, don't forget to let me know in Twitter

About

use laravel blade component methods as javascript function for XHR

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors