stagerightlabs / centaur Goto Github PK
View Code? Open in Web Editor NEWAn opinionated implementation of Cartalyst's Sentinel package for Laravel
Home Page: http://stagerightlabs.com/projects/centaur
License: MIT License
An opinionated implementation of Cartalyst's Sentinel package for Laravel
Home Page: http://stagerightlabs.com/projects/centaur
License: MIT License
Package includes few middlewares which redirects user to hardcoded url's.
jump to source
Theese route names should be in config, imho
Or is there a way to override these middleware clases?
Laravel 7 has removed the (previously deprecated) Illuminate\DetectsApplicationNamespace
PHP Fatal error: Trait 'Illuminate\Console\DetectsApplicationNamespace' not found in C:\project\vendor\srlabs\centaur\src\Console\CentaurScaffold.php on line 13
https://github.com/laravel/framework/blob/6.x/src/Illuminate/Console/DetectsApplicationNamespace.php
Hi,
Authentication and Authorization works fine until i clicked the Activation link sent to new user email.
On clinking the Activation email line, the page that displayed showed this error
InvalidArgumentException
Route [login] not defined.
I actually want to activation link to redirect to {{route('auth.login.form')}} but kept redirecting to the error page.
I have tried all solutions but none seems not to work
Please kindly advise on what i should do. Thanks
centaur keeps redirect to /dashboard when it's suppose to be redirecting to /admin. What should i change?
How to use throttle from route login attempts and configuration. Thanks.
Im trying to use this feature but i just cant know how to implement it since there is no documentation about this.
i know i need to set remember me as true when i authenticate but then what i need to do for the user not need to write his username and/or password again to login.
could someone help me? please
I got this error when requesting a resend activation mail. I think it's the same as issue #22 so you might have forgotten to rewrite this one. ๐
Cool project. ๐ I use it for self-education about how Sentinel can be implemented, as well as some of Laravel's features I'm not very familiar with such as IoC.
Case 'error' is not associated with any class in Bootstrap when resolved as alert-error
. I can make a quick pull request to fix this.
Reference: https://github.com/SRLabs/Centaur/blob/master/views/notifications.blade.php#L7
Dear Centaur can you please let me know when php 8.0 support will be available?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- srlabs/centaur 10.00.01 requires php ^7.2 -> your PHP version (8.0.0) does not satisfy that requirement.
- srlabs/centaur 10.0.0 requires php ^7.2 -> your PHP version (8.0.0) does not satisfy that requirement.
- srlabs/centaur 10.00.01 requires php ^7.2 -> your PHP version (8.0.0) does not satisfy that requirement.
- Installation request for srlabs/centaur ^10.0 -> satisfiable by srlabs/centaur[10.0.0, 10.00.01].
It may just need version numbers bumping in composer.json, but with Centaur 10.00.01 I can't upgrade to Laravel 8.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for srlabs/centaur ^10.0 -> satisfiable by srlabs/centaur[10.0.0, 10.00.01].
- Can only install one of: cartalyst/sentinel[5.x-dev, 4.x-dev].
- Can only install one of: cartalyst/sentinel[5.0.x-dev, 4.x-dev].
- Can only install one of: cartalyst/sentinel[v5.0.0, 4.x-dev].
- Conclusion: install cartalyst/sentinel 4.x-dev
- Installation request for cartalyst/sentinel ^5.0 -> satisfiable by cartalyst/sentinel[5.x-dev, 5.0.x-dev, v5.0.0].
How can i use centaur on the new Laravel 5.3
Hi there,
this is not an issue report. I just need some help.
I got an project that was built with laravel 4 and rydurham/Sentinel.
Since Laravel 4 is not very recent anymore it should be updated to the newest possible version.
After reading some warning to not use rydurham/sentinel i decided to use the solution linked from there (this one).
I followed the instructions and it seems to work so far. Not exceptions, the login page works fine.
But there is one thing that breaks it for me. I believe it is a small thing, but i need further information about how it should be.
There is the line: php artisan db:seed --class="SentinelDatabaseSeeder" that should be executed.
But i can't use this, since i have already an user table from the current setup.
Trying to login results in a exception that tells me that there is a column ("type") missing.
So the current user table with the columns (id ,email ,password ,permissions ,activated ,activation_code ,activated_at ,last_login ,persist_code ,reset_password_code ,first_name ,last_name ,company ,master ,global ,created_at ,updated_at) is not compatible to centaur/sentinel.
I also saw that there is a migration script from sentinel. I could let the script recreate all tables (they were empty) except the users table.
So here is my question.
Can i migrate the users table to be compatible with centaur/sentinel?
Or should i better go back to rydurham/sentinel?
Is there a documentation about the users table content? (in order to remap the data)
I am grateful for every help ๐
Hi,
In Centaur, If a Registered user tries to Login before activating himself via email, it's expected that an error message will show as a notification that "Your account has not been activated yet."
Instead of the error message to show as notification, it's showing as a Debug page Application frames.
Please kindly advise me on the steps to take to make the error message show up as Notification rather than Debug page.
Thanks
Hey,
There doesn't seem to be a tag for laravel 5.7 (ie release tagged 7.x.x)
Are you able to create one as there seems the 5.7 support?
Thanks!
Hello,
I'm new to Laravel 5 and Sentinel, I was just trying this module to understand how to implement sentinel in a project and how work with it. Everithing is on on new installation, after i've finished i've tried to open the dashboard and it works, but when i go to the login page appears this error.
I've created a new installation using Laravel 5.2 and srlabs/centaur ^2.0, followed all instructions using artisan commands. Everything work fine but error messages simply won't show. I tried generating error messages by simulating erroneous user input at login, registration and by trying to delete admin account but the system only refreshes the page but won't show any errors.
On fresh install laravel5.4, on php artisan centaur:spruce command, I recieve error:
PHP Fatal error: Trait 'Illuminate\Console\AppNamespaceDetectorTrait' not found in vendor/srlabs/centaur/src/Console/CentaurScaffold.php on line 12. In official documentation of Laravel, there suggestion to use Illuminate\Console\DetectsApplicationNamespace (https://laravel.com/docs/5.4/upgrade).
Hello,
I use your package and try to translate it (french).
Middlewares are not translated
AuthManager.php has this : $this->translate('user_logout', 'You have been logged out')
How can I do ?
Thanks
Error when registering new user (guess it will be the same for any action that sends an email) because Laravel 5.3/5.4 use mailables.
I'm relatively new to development so don't know how to go about fixing this myself.
Is there any way I can use this package to login a user with facebook?
I've already made the logic to get the user details from facebook, but I got stuck at login part. I don't know how to make the login using this package.
any suggestions?
how to change it that visitors can connect with username and email ?
Is there any chance to get Laravel 5.4 support?
Thanks
How to solve this issue? mailtrap mailgun
Hi,
I'm using your fantastic package but I have a weird issue.
I could delete user and roles easily but now it's not working anymore. I'm redirected directly on the controller's index view
I do not change middleware or other.
What do you think ?
Thanks for your time,
Regards
I have two login page one /admin/login other direct /login and when i hit the /admin/login its redirecting me to /dasboard directly when i'm already logged in
But its should redirect me to admin/dasboard i couldnt find how can i change this why its redirecting me to dashboard
Hello,
I'm trying to build API's for a project. However, I'm confused as to how to make this work with L5.3 Passport. I know this issues sounds vague. But a little light towards the right direction might help.
Regards
I am facing a problem, i want to use my User model instead of EloquentUser Model, because i want to add more fields, i have already updated the cartalyst.sentinel.php config file
'users' => [
// 'model' => 'Cartalyst\Sentinel\Users\EloquentUser',
'model' => 'App\User',
],
And in the User.php model is added
use Cartalyst\Sentinel\Users\EloquentUser as SentinelUser;
class User extends SentinelUser
{
}
But still it is using the EloquentUser model.
I have this issue:
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required"
this occurred when I follow the basic in the markdown and successfully migrate the database and post a registration form at '/register'.
I use :
If the username/password is incorrect then no error shows up while all other errors are displaying correctly. I am using Laravel 5.6.
Hi,
I'd like to implement the following access rules for an app where users can post articles, I would like to have an "admin" role and a "user" role, and set up the permissions so that users can create articles, users can edit only the articles that they created, and admins can edit all articles.
In this case, the "admin" role would have an "articles.edit" permission, but I'm not sure how to handle the "user" role.
Does this package provide an out-of-the-box solution for this case?
Thank you in advance.
Well, I guess I'm the first to ask for it... :)
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.