Skip to content
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

Prefix wasn't considered in DB Raw query. #27

Closed
wants to merge 1 commit into from

Conversation

idangozlan
Copy link

This is the wrong way to use Laravel Query... Please consider use Query Builder instead of using raw sql query (which cause bugs like that one)

This is the wrong way to use Laravel Query... Please consider use Query Builder instead of using raw sql query (which cause bugs like that one)
@douxlagithub
Copy link

I also suggest using laravel query builder like
$query = DB::table('tablename')
->select('fields')
->leftJoin('dest_table', 'target_field', '=', 'dest_field')
->where('filter_field', '=', 'criteria')
->orderBy('filter_field', "direction")
->get();
This ways will be more manageable to understand query system for development purpose.

@stojankukrika
Copy link
Collaborator

It did not do until now, because I didn't find some free time and forgot it. Sorry. Now it fixes as some new fixes in site part.

@zcosmin20 zcosmin20 mentioned this pull request Dec 1, 2015
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

Successfully merging this pull request may close these issues.

4 participants