Created
September 22, 2017 19:52
-
-
Save anonymous/a31b27c61fd5235261b61254b0b4ae3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use DB; | |
class HomeController extends Controller { | |
public function cpus() { | |
$cpus = DB::select(`id`,`“cpu”`) | |
->from(`cpus`) | |
->whereRaw(`id NOT IN`, [], `( SELECT cpu_id FROM equipos )`) | |
->get() | |
->union(DB::select(`pantalla_id`) ->from(`equipos`) ->get()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment