Questions tagged [cartalyst-sentinel]

Sentinel is a framework agnostic set of interfaces with default implementations for authentication & authorization.

Sentinel is a PHP 5.4+ fully-featured authentication & authorization system. It also provides additional features such as user roles and additional security features.

Sentinel is a framework agnostic set of interfaces with default implementations, though you can substitute any implementations you see fit.

An open source package by Cartalyst.

Source available at Github.com

85 questions
0
votes
0 answers

diffrence between Sentinel::authenticate and Sentinel::login

diffrence between Sentinel::authenticate and Sentinel::login when I use Sentinel::authenticate then i logout user but still user logged in I use below code to check user is log-in or not if(Sentinel::guest()) { session()->flash('error',…
0
votes
1 answer

Cartalyst\Sentinel getting all Users with resulting permissions

For the purpose of a user-management ui I want to get all users with resulting permissions. I use the native implementation of Cartalyst\Sentinel and tried: $users = Sentinel::getUserRepository()->with('roles')->get(); $permissions = array(); …
meDom
  • 183
  • 1
  • 1
  • 8
0
votes
1 answer

How do you add sentinel to Laravel project?

I have this method: $user=Sentinel::findById($user->id); $reminder=Reminder::exists($user)? : Reminder::create($user); $this->sendEmail($user, $reminder->code); return redirect()->back()->with(['success'=>'reset code sent']); However it shows an…
0
votes
1 answer

Laravel7 - Redirect on specific view when throttling detected

I need to redirect the user to a simple informative view when throttling is detected during login. I have a view called suspended.blade.php I have set a route Route::get('/suspended', function(){ return view('suspended'); }); I'm using…
Simone Conti
  • 349
  • 1
  • 17
0
votes
0 answers

Cartalyst Sentinel user registration with custom fields (solved)

Good evening. I added a boolean field "privacy_ok" to my user model and migration. migration file Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('first_name',100)->nullable(); …
Simone Conti
  • 349
  • 1
  • 17
0
votes
1 answer

how to use cartalyst sentinel permission check in laravel vue spa?

I am building a SPA with laravel and Vue js. For authentication, I have used cartalyst/sentinel package. I am facing a problem to implement permission check in frontend. In the backend I have checked for the permission with Sentinel::hasAccess()…
0
votes
1 answer

Sentinel Package: Getting all logged in Users

I'm using Sentinel in Laravel for user management. I logged in 2 users and I try to get a list of all logged in users but this only returns the very last user to log in. The code below is one of my attempts. I know im doing it wrong pls…
0
votes
0 answers

Check if logged in using Sentinel in Vue JS

Is there a way to check if user is logged in using sentinel::check() in vue file. I tried using the blade syntax but it doesn't work (see below). @if(Sentinel::check()) @endif Maybe anyone knows how? Thank you in advance.
ampedo
  • 257
  • 2
  • 17
0
votes
1 answer

How can I do equivalent to actingAs() when not using Laravel Auth

All documentation that I have found refers to the Laravel helper actingAs() but this requires me to be using Laravel's native Auth package and I'm using Cartalyst's Sentinel and so can't use actingAs(). Has anyone found a way around this?
Ben
  • 311
  • 1
  • 2
  • 12
0
votes
1 answer

How to add slug in Cartalyst-Sentinel by adding first_name and last_name?

I am doing a project with laravel. And I am using Cartalyst-Sentinel with it. How can I add slug from first_name+last_name in users table from database I added slug for "roles" table but I don't know How can I add values in "slug" columns in the…
user6882864
0
votes
1 answer

Why there is 2 primary keys in table (Sentinel framework database)?

i included SENTINEL framework with implemented Sentinel migration into my LARAVEL project. Lot of things are clear to me but i can't understand why there is 2 primary keys in Role_users table, because i learned that for connection between 2 tables…
Nenad
  • 323
  • 2
  • 6
  • 21
0
votes
1 answer

How to send activation email/code using cartalyst sentinel using laravel 5.4

I want to send activation email/code to their emails during signup procedure but I am unable to find suitable answer that help me to complete my work. This is my controller method where i am saving user data into my database using sentinel. public…
shahzad1122
  • 285
  • 1
  • 6
  • 23
0
votes
2 answers

How can i use cartalyst sentinel with tymon jwt in Laravel 5.6?

I'm wondering how to implement tymon jwt 1.0.0 rc2 with Cartalyst Sentinel 2.0 authentication package in Laravel 5.6 to take advantage of throttling and others Sentinel features. Inside AuthController I have this login() method as mentioned in…
walid
  • 299
  • 2
  • 4
  • 19
0
votes
1 answer

Laravel 5.6 MethodNotAllowedHttpException when user is logged out but sending a post request

I am using Sentinel for authentication. As long as I am logged in, everything is working well. But when I am logged out (f.e. delete all values in the persistences table) and I am on something.blade.php and click a link that triggers a post request…
titonior
  • 147
  • 4
  • 13
0
votes
2 answers

Laravel Spatie/Laravel-activitylog with Sentinel

I'm using Sentinel for authorization on my Laravel project. Now i'm trying to add Laravel-activitylog from Spatie. Activity log uses default auth driver for logging user activity. How can i change driver to use the one from Sentinel. I'm new at…
Primož
  • 3
  • 4