Skip to content

What about Laravel 5.3 ? #927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AliBahaari opened this issue Aug 26, 2016 · 5 comments
Closed

What about Laravel 5.3 ? #927

AliBahaari opened this issue Aug 26, 2016 · 5 comments

Comments

@AliBahaari
Copy link

Hi ..., Recently Laravel 5.3 came out. Is there any problem If I use the version for Laravel 5.2 ?

@lukepolo
Copy link
Contributor

Please use the search feature to find open issues #925

@gp187
Copy link

gp187 commented Aug 26, 2016

As a workaround to use mongodb in laravel 5.3 you can use this

Model

use Jenssegers\Mongodb\Eloquent\Model as Moloquent;

class AdminUser extends Moloquent
{
    protected $connection="mongodb";
    protected $collection="admin_important_users";
}

Controller

class AdminUserController extends Controller
{
    public $model;

    public function __construct(AdminUser $user) {
        $this->model = $user;
    }
$col = $this->model->getConnection()->table('admin_important_users');
$col->get();

That's how you get collection object. I'll try some fixes but for now this works.

@lukepolo
Copy link
Contributor

#925 solves this , no need , just needs merged.

@AliBahaari
Copy link
Author

AliBahaari commented Aug 26, 2016

Thanks @lukepolo & @gp187 ..., I didn't get what should I exactly ?

@gp187
Copy link

gp187 commented Aug 27, 2016

Ok @lukepolo . Let's see it done.
Merge please @jenssegers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants