cartalyst-sentry

Laravel 4 php artisan migration not working

做~自己de王妃 提交于 2020-01-16 04:12:28
问题 I am trying to follow a tutorial about the basics of Databases and i am at the part of setting up Sentry 2. I added all the exceptions as requested. But on step four of the documentation page on the Sentry 2 website. I am getting the following error {"error":{"type":"ErrorException","message":"Undefined index: collation","file":"\/var\/www\/db_test\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Connectors\/MySqlConnector.php","line":22}} I tried a few things as noted in my ssh screen

saving permissions as json in Administrator for this error-> Cannot JSON_decode permissions [Admin]

穿精又带淫゛_ 提交于 2019-12-24 00:34:54
问题 I am using Administrator (frozennode) with Sentry . for permission part when I want to create new group I dont know how should I save the text "user.update" like {"user.update":1} . I have to .because sentry's methods work just with json data. but when I import different kind of permissions or groups how do this? how should I change the Administrator save() method to force it do that just for "permission" field? the save() function -> http://laravel.io/bin/qkr76 thanks for your time 来源: https

How to force a package to be installed?

寵の児 提交于 2019-12-22 03:54:25
问题 I'm trying to install the following package through composer : https://packagist.org/packages/cartalyst/sentry#dev-feature/laravel-5 When I do: composer require cartalyst/sentry dev-feature/laravel-5 I always receive this error: [InvalidArgumentException] Could not find package dev-feature/laravel-5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability If I change minimum-stability to dev it will still complain. However, if I install dev

How can I use sentry with laravel 5?

瘦欲@ 提交于 2019-12-17 23:08:02
问题 I have tried installing sentry in laravel 5 but it doesn't work. I would like to know if anyone has done it and how to do it. Update: I used the instructions for Laravel 4. 回答1: I have this working. There is no official support right now for Sentry in L5. They state this right on their website. They are working on it however. Add the following to your composer.json file in the require section. "cartalyst/sentry": "dev-feature/laravel-5", "illuminate/html": "~5.0" Add the following to the

Controlling Access to Routes Laravel and Sentry

余生颓废 提交于 2019-12-12 02:57:29
问题 I am wondering how I can restrict access to certain routes in the routes.php file when using Sentry . Currently I have the following routes set up Route::model('book', 'Book'); Route::get('/books', 'BookController@index'); Route::get('book/create', 'BookController@create'); Route::get('book/edit/{book}', 'BookController@edit'); Route::get('book/delete/{book}', 'BookController@delete'); Route::get('book/view/{book}', 'BookController@view'); Route::post('book/create', 'BookController

Adding more constrain in sentry 2 authentication processs

…衆ロ難τιáo~ 提交于 2019-12-11 06:59:40
问题 Do you have any ideas, how to add some more constrain while authentication in sentry 2, I have a company table and users belongs to a company, and if the company is disabled(set the active to 0 to mark it as disabled in the company table) then the user should not be able to login. In short while logging some users it should check for the company they belongs to and check if it is active or not, if not then do not log them in or throw an exception. ...Please help if u have any idea about it.

Using the Remember me feature with Sentry in Laravel 4

蓝咒 提交于 2019-12-08 06:09:08
问题 I'm trying to get a login form to 'remember' the user logging in and I just can't work out how to do it. Here's my controller public function getLogin() { // Return the view with the data return View::make('users.login'); } public function postLogin() { // Gather Sanitized Input $input = array( 'email' => Binput::get('email'), 'password' => Binput::get('password'), 'rememberMe' => Binput::get('rememberMe') ); // Set Validation Rules $rules = array ( 'email' => 'required|min:4|max:64|email',

How to force a package to be installed?

风格不统一 提交于 2019-12-05 01:28:25
I'm trying to install the following package through composer : https://packagist.org/packages/cartalyst/sentry#dev-feature/laravel-5 When I do: composer require cartalyst/sentry dev-feature/laravel-5 I always receive this error: [InvalidArgumentException] Could not find package dev-feature/laravel-5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability If I change minimum-stability to dev it will still complain. However, if I install dev-master and manually merge the files from dev-feature/laravel-5 into dev-master , it works fine. Hence why I

Laravel: Enable Sentry user account be used in multiple computers

两盒软妹~` 提交于 2019-12-04 08:31:59
问题 While using Sentry in L4, is it possible to make an account be used in multiple computers at the same time? Right now, Sentry logs out the user the moment the same account is used in another computer. Right now I'm trying for that not to happen and keep both users logged in at the same time. I know that it's a security feature when a user gets logged out, but my project's circumstances aren't what you'd call normal . 回答1: Extension to Nico Kaag's answer and implementation of spamoom's comment

laravel sentry redirect::intended not working

帅比萌擦擦* 提交于 2019-12-03 13:03:40
问题 I'm trying to get the sentry package set up in my app correctly. I can log a user in and out and protect routes but I can't seem to get the redirect::intended to work properly. My understanding is that a user will be taken back to the route they originally called before being directed to the login page. At the moment it simply keeps redirecting to the default page. In my routes.php I have the following group set up: Route::group(array('before' => 'sentryAuth'), function () {...} Within this