Giter VIP home page Giter VIP logo

propel-laravel's People

Contributors

allboo avatar big-shark avatar scif avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andrewwojownik

propel-laravel's Issues

Custom name for user table

Hi, I use your Auth propel driver and I like it.
But I have small problem, my auth user table is not named with 'user'. It seams to be the name of user table is hard coded in PropelUserProvider.
It would be great if we can use custom name for 'user' table.

I found a way that you can easily fix this, just add:
$table = \Config::get('auth.table'); in retrieveByCredentials
and instead of using 'User', use $table.

I'm sorry if there is already a way to use of another name for 'user' table.

php artisan route:list command doesn't work

When I run 'php artisan route:list' command it show an error 'Driver [propel] not supported.'.
I notice in RuntimeServiceProvider your comment: 'skip auth driver adding if running as CLI to avoid auth model not found'.
But is this necessary? When I remove '! \App::runningInConsole()' from if condition, route:list command pass correctly.

TODO. Wishlist

Write your wishes which you want to be implemented in current package.

My own prefered task list:

  • write quick start guide (installation, database reverse/write schema, setup auth provider)
  • task that will change auth settings in app/

Config error

Hey Guys,

I have bene trying to figure this out by myself but I can't.

In my local development environment I have this plugin working perfectly but when deploying there is an issue. I get these errors.
[Wed Aug 12 18:44:37.429070 2015] [:error] [pid 30427] [client 190.88.209.114:13186] PHP Warning: array_filter() expects parameter 1 to be array, null given in /home/project/laravel/config/propel.php on line 83, referer: http://www.project.com/
[Wed Aug 12 18:44:37.429163 2015] [:error] [pid 30427] [client 190.88.209.114:13186] PHP Warning: array_map(): Argument #2 should be an array in /home/project/laravel/config/propel.php on line 84, referer: http://www.project.com/

I thinks the issue comes from the order laravel has in loading the config files. By adding the line below to the config files I found out that propel.php is loaded before database.php in the production environment. Locally this is the other way around.

echo 'Loaded: ' . microtime(true) . ': ' . FILE . '
';

Result on production:
Loaded: 1439398148.1305: /home/project/laravel/config/propel.php
Loaded: 1439398148.1313: /home/project/laravel/config/database.php

Result local:
Loaded: 1439398248.01: /Users/SvanThuijl/PhpstormProjects/laravel/config/database.php
Loaded: 1439398248.02: /Users/SvanThuijl/PhpstormProjects/laravel/config/propel.php

Does anybody know how to solve this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.