miroc / laravel-adminer Goto Github PK
View Code? Open in Web Editor NEWAdminer wrapper for Laravel 5
Adminer wrapper for Laravel 5
When I click on foreign key id in a table the browser crash and laravel throws an exception in adminer-4.3.1-en.php (line 1808). I think it is solved in new versions of adminer, so it would be fine if the versión of adminer is updated in this páckage.
Hi. Latest version of adminer is 4.2.2
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');
I see that 4.7.0 has been merged, but the latest tag is still 4.5.0.
Tag the newest release, please.
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 fails for SQLite, with the following message:
Implement login() method to use SQLite.
I believe this could be solved by adding this plugin:
https://raw.githubusercontent.com/vrana/adminer/master/plugins/login-sqlite.php
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
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?
This version of adminer throws error on PHP 7. I've been told that newer version of adminer has addressed the issue.
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 :-)
Could you release a version that works with Laravel 6? Also, #24 -> 4.7.2 is released
Is there any way to change 3306?
I am using your package and it works great. Could you be so kind to update to the latest version of Adminer?
Can you put a tag with the version to make stable package?
Thanks.-
how to include themes ?
or at least provide responsive theme as default,
thanks
btw great package, i'm stuck including adminer.php standalone
A new versio of adminer was released:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.