All Projects → neelkanthk → laravel-surveillance-ui

neelkanthk / laravel-surveillance-ui

Licence: MIT License
Provides a Graphical UI for Laravel Surveillance package and integrates within your existing application.

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
Less
1899 projects
CSS
56736 projects
Blade
752 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-surveillance-ui

Laravel Surveillance
Put malicious users, IP addresses and anonymous browser fingerprints under surveillance, log the URLs they visit and block malicious ones from accessing the Laravel app.
Stars: ✭ 198 (+890%)
Mutual labels:  laravel-package, access-control
csv
No description or website provided.
Stars: ✭ 47 (+135%)
Mutual labels:  laravel-package
laravel-bitcoinrpc
Bitcoin JSON-RPC Service Provider for Laravel.
Stars: ✭ 83 (+315%)
Mutual labels:  laravel-package
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-20%)
Mutual labels:  laravel-package
searchable
Pattern-matching search and reusable queries in laravel.
Stars: ✭ 28 (+40%)
Mutual labels:  laravel-package
react-abac
Attribute Based Access Control for React
Stars: ✭ 54 (+170%)
Mutual labels:  access-control
phpcsfixer-preset
Use the same php-cs-fixer configuration across all of your projects, with presets for common project layouts (Laravel, Composer packages, etc.).
Stars: ✭ 22 (+10%)
Mutual labels:  laravel-package
jdbc-adapter
JDBC adapter for Casbin
Stars: ✭ 26 (+30%)
Mutual labels:  access-control
laravel-dacapo
Laravel migration support tool, Always generate the latest migration files on schema.yml
Stars: ✭ 88 (+340%)
Mutual labels:  laravel-package
sheriff
Build simple and robust authorization systems with just Elixir and Plug
Stars: ✭ 39 (+95%)
Mutual labels:  access-control
magento-laravel-api
A simple Magento 2 REST API Object Oriented wrapper for Laravel applications.
Stars: ✭ 45 (+125%)
Mutual labels:  laravel-package
Casbin4D
An authorization library that supports access control models like ACL, RBAC, ABAC in Delphi
Stars: ✭ 25 (+25%)
Mutual labels:  access-control
laravel-crud-generator
Laravel CRUD Generator
Stars: ✭ 181 (+805%)
Mutual labels:  laravel-package
active-state
Laravel Active State Url Helper For Request
Stars: ✭ 45 (+125%)
Mutual labels:  laravel-package
laravel-string-similarities
Compare two string and get a similarity percentage
Stars: ✭ 54 (+170%)
Mutual labels:  laravel-package
rbac core
(Moved to https://github.com/rails-engine/role_core) A Rails engine providing essential industry of Role-based access control
Stars: ✭ 15 (-25%)
Mutual labels:  access-control
shield
A laravel middleware to protect against unverified webhooks from 3rd party services.
Stars: ✭ 96 (+380%)
Mutual labels:  laravel-package
artisan-beans
Easily manage your Beanstalkd job queues right from the Laravel artisan command
Stars: ✭ 41 (+105%)
Mutual labels:  laravel-package
LaravelSapient
Sapient Integration for Laravel
Stars: ✭ 13 (-35%)
Mutual labels:  laravel-package
laravel-blade-on-demand
Compile Blade templates in memory
Stars: ✭ 36 (+80%)
Mutual labels:  laravel-package

Laravel Surveillance UI Logo

What is Laravel Surveillance UI?

Provides a Graphical UI for Laravel Surveillance and integrates within your existing application.

What is Laravel Surveillance?

Laravel Surveillance is a package to put malicious users, IP addresses and anonymous browser fingerprints under surveillance, write surveillance logs and block malicious ones from accessing the app. Read more

Laravel Surveillance UI Demo

Minimum Requirements

  1. Laravel 6.0
  2. PHP 7.2

Installation

composer require neelkanthk/laravel-surveillance-ui

Usage

Step 1: Configure Laravel Surveillance

NOTE:- If you have already installed neelkanthk/laravel-surveillance in your application then please go directly to Step 2.

1.1. Publish the migration files:

php artisan vendor:publish --provider="Neelkanth\Laravel\Surveillance\Providers\SurveillanceServiceProvider" --tag="migrations"

1.2. Publish language files:

php artisan vendor:publish --provider="Neelkanth\Laravel\Surveillance\Providers\SurveillanceServiceProvider" --tag="lang"

1.3. Run the migrations

php artisan migrate

1.4. Publish the config file (Optional):

php artisan vendor:publish --provider="Neelkanth\Laravel\Surveillance\Providers\SurveillanceServiceProvider" --tag="config"

Read more about Laravel Surveillance installation

Step 2: Configure Laravel Surveillance UI

The following steps will install Laravel Surveillance UI in your application.

2.1. Publish views:

php artisan vendor:publish --provider="Neelkanth\Laravel\SurveillanceUi\Providers\SurveillanceUiServiceProvider" --tag="views"

2.2. Publish config:

php artisan vendor:publish --provider="Neelkanth\Laravel\SurveillanceUi\Providers\SurveillanceUiServiceProvider" --tag="config"

2.3. Publish assets:

php artisan vendor:publish --provider="Neelkanth\Laravel\SurveillanceUi\Providers\SurveillanceUiServiceProvider" --tag="assets"

Add Middleware

Laravel Surveillance provides a surveillance middleware that can be used on any route or route group to make it eligible for surveillance.

Route::middleware(["surveillance"])->get('/path', function () {});

Read more about middleware usage

Accessing the Dashboard

The Laravel Surveillance UI manager dashboard can be accessed at: http://your.domain/surveillance/ui/manager

The Laravel Surveillance UI logs dashboard can be accessed at: http://your.domain/surveillance/ui/logs

Overriding and customizing the package default configuration

Customizing the route prefix

By default surveillance/ui route prefix is appended to the package's routes.

If you want to customize it then you can do so easily in the config/surveillance-ui.php file's prefix key as shown below.

/**
 * The prefix to be used in the surveillance ui routes
 */
"prefix" => "surveillance/ui",

Customizing the route middleware

By default web middleware is added to the package's routes.

If you want to add more middlewares like auth or something else, then you can add them easily in the config/surveillance-ui.php file's middleware key as shown below.

/**
 * The middleware(s) to be used in the surveillance ui routes
 */
"middleware" => ["web", "auth"], //auth middleware added

Customizing the views

After publishing the package views you can change the design as per your taste. The views are published inside your project's resources/views/vendor/surveillance-ui directory.

Customizing the JS and CSS

After publishing the package assets you can tweak the JS and CSS inside your project's public/surveillance-ui directory.

Replacing the default logo

You can change the default CCTV logo and favicon displayed on the Surveillance Dashboard by replacing them with your own at public/surveillance-ui/images/logo.png and public/surveillance-ui/images/favicon.ico.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].