-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logged file #172
base: 1.4
Are you sure you want to change the base?
Logged file #172
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php namespace LaravelAcl\Http\Middleware; | ||
|
||
use Closure; | ||
use Illuminate\Support\Facades\App; | ||
|
||
/* | ||
* Check that the current user is logged and active and redirect to client login or | ||
* to custom url if given | ||
*/ | ||
class Logged { | ||
|
||
public function handle($request, Closure $next, $custom_url = null) | ||
{ | ||
$redirect_url = $custom_url ?: '/login'; | ||
if(!App::make('authenticator')->check()) return redirect($redirect_url); | ||
|
||
return $next($request); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
laravel-authentication-acl | ||
========================== | ||
|
||
[![Build Status](https://travis-ci.org/intrip/laravel-authentication-acl.svg?branch=1.3)](https://travis-ci.org/intrip/laravel-authentication-acl) | ||
[![Build Status](https://travis-ci.org/intrip/laravel-authentication-acl.svg?branch=1.5)](https://travis-ci.org/intrip/laravel-authentication-acl) | ||
[![Total Downloads](https://poser.pugx.org/jacopo/laravel-authentication-acl/d/total.svg)](https://packagist.org/packages/jacopo/laravel-authentication-acl) | ||
|
||
# We are looking for someone to take ownership of this project. Sadly I don't have enough time to maintain it anymore, please get in touch /w me if you are interested. | ||
|
||
## This is the Laravel 5.4 Version, for Laravel 5.3 use the version 1.3.*, for Laravel 5.2 use the version 1.3.15, for Laravel 5.1/5.0 use the version 1.3.11, for Laravel4 version use the 1.2 branch | ||
## This is the Laravel 8.0 Version, for Laravel 5.5 use the version 1.5.*, for Laravel 5.4 use the version 1.4.*, for Laravel 5.3 use the version 1.3.*, for Laravel 5.2 use the version 1.3.15, for Laravel 5.1/5.0 use the version 1.3.11, for Laravel4 version use the 1.2 branch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this changes allow using the package with laravel 8? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I have upgraded my system from Laravel 5 to Laravel 8 and so made changes accordingly to work with Laravel 8.0 |
||
|
||
Laravel Authentication ACL is a Laravel 5 package, based on <a href="https://github.com/cartalyst/sentry" target="_blank">sentry2</a>. <br/> | ||
Laravel Authentication ACL is a Laravel 5+ package, based on <a href="https://github.com/cartalyst/sentry" target="_blank">sentry2</a>. <br/> | ||
This package is made with the purpose of helping other developers to set-up | ||
a fully featured admin panel with an ACL using Laravel framework. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you elaborate why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be it is not required here, but for my system to work this file is required. So, in case some needs this.