LaravelPackages.net
Acme Inc.
Toggle sidebar
zdrojowa/revision-module

52
0
1.1.1
About zdrojowa/revision-module

zdrojowa/revision-module is a Laravel package. It currently has 0 GitHub stars and 52 downloads on Packagist (latest version 1.1.1). Install it with composer require zdrojowa/revision-module. Discover more Laravel packages by zdrojowa or browse all Laravel packages to compare alternatives.

Last updated

RevisionModule

Latest Version on Packagist Total Downloads Build Status

Revisions & History

Installation

Via Composer

$ composer require zdrojowa/revision-module

Usage

  • Add in webpack.mix.js
mix.module('RevisionModule', 'vendor/zdrojowa/revision-module');
  • Add module RevisionModule in config/selene.php
'modules' => [
    RevisionModule::class,
],
  • run npm
npm install
npm run prod
  • Dodaj w module akcji
Revision::create([
    'table' => 'pages',
    'action' => 'updated',
    'content_id' => $id,
    'content' => $page,
    'created_at' => now(),
    'user_id' => $request->user()->id
]);
  • Dodaj we view

<link rel="stylesheet" href="{{ mix('vendor/css/RevisionModule.css','') }}">

@include('RevisionModule::revisions', [
    'table'      => 'pages',
    'content_id' => $page->id
])

@javascript('csrf', csrf_token())
<script src="{{ mix('vendor/js/RevisionModule.js') }}"></script>
    

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

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

Credits

License

license. Please see the license file for more information.

Comments