matteodv51 / laravel-ajax-view
Simply create a blade view integrating an ajax script with the csrf token
dev-main
2023-04-27 02:21 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
This package is not auto-updated.
Last update: 2024-12-20 08:38:01 UTC
README
Installation
You can install the package via composer:
composer require matteodv51/laravel-ajax-view
Usage
add <meta name="csrf-token" content="{{ csrf_token() }}">
and
<link rel="stylesheet" href="{{ asset('css/ajax/_ajax_form.css')}}">
in your header layout base
run php artisan make:ajax-view {filename : the name of your file}
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.