Giter Club home page Giter Club logo

laravel-adminer's People

Contributors

jesseleite avatar jonasof avatar miroc avatar pavoltanuska avatar senaranya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-adminer's Issues

Instructions to add Admin Middleware

Add Admin User Auth Middleware

Create Adminer Middleware

php artisan make:middleware Adminer

File /app/Http/Middleware/Adminer.php:

<?php

namespace App\Http\Middleware;

use Auth;
use Closure;

class Adminer
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (!Auth::check())
        {
            return redirect()->route('login');
        }

        return $next($request);
    }
}

Change /app/Http/Kernel.php:

    protected $routeMiddleware = [
        ...
		'adminer' => 'App\Http\Middleware\Adminer',
    ];

Add auto-login route:

Route::any('adminer', '\Miroc\LaravelAdminer\AdminerAutologinController@index')->middleware('adminer');

Tag for 4.7.0 missing

I see that 4.7.0 has been merged, but the latest tag is still 4.5.0.

Tag the newest release, please.

Multiple language version request

Thank you for the awesome work!!!
Can you provide multiple language version, not just English?
Or providing different versions that we can switch by modifying config file.

Automatic login for Laravel database

Adminer can also automatically log in to the laravel database using the provided credentials from Laravel.

From what I see you can also override the login form to display the Laravel credentials by default. This makes it possible for users to switch if needed.

See for example this WP plugin

CSRF needs to be disabled?

It seems I need to disable CSRF protection middleware for Adminer to work. Do you know of way to just disable CSRF middleware on the Adminer route only?

Throws error on PHP 7

This version of adminer throws error on PHP 7. I've been told that newer version of adminer has addressed the issue.

Installation Location

I'm unsure about where to install this.
Do we install it into each individual project folder, or can we install it into a folder that holds multiple projects?
I would like to be able to use it in multiple projects if possible.

Also, I seem to have two different VerifyCsrfToken.php files...
One has the namespace of Illuminate\Foundation\Http\Middleware;
The other has the namespace of App\Http\Middleware;
Do I edit both of these files?
I can open a separate issue for the second question if you'd like.

Thanks for your help :-)

themes

how to include themes ?
or at least provide responsive theme as default,
thanks

btw great package, i'm stuck including adminer.php standalone

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.