scif / propel-laravel Goto Github PK
View Code? Open in Web Editor NEWThis project forked from allboo/propel-laravel
Propel 2 integration for Laravel framework
License: MIT License
This project forked from allboo/propel-laravel
Propel 2 integration for Laravel framework
License: MIT License
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.
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.
Write your wishes which you want to be implemented in current package.
My own prefered task list:
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?
the actual question in the title
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.