This file contains hidden or 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
$.ajax({ | |
type: "POST", | |
url: "/hoge", | |
data: "msg=hoge", | |
success: function(){ | |
alert("γγ£γγοΌ"); | |
}, | |
error: function() { | |
alert("γγ‘γ γ£γγγ»γ»γ»"); | |
} |
This file contains hidden or 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
public function hoge(){ | |
if ( Input::get('msg') == 'hoge') { | |
return Response::make("OKοΌ", 200); | |
} else { | |
return Response::make("NGοΌ", 500); | |
} | |
} |
This file contains hidden or 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
SELECT * | |
FROM hoge | |
WHERE id = 1 | |
AND ( | |
name = "fuga" | |
) |
This file contains hidden or 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
DB::table('hoge')->where('id', '=', 1) | |
->where( function( $query ) { | |
$query->where('name', '=', 'fuga'); | |
}) | |
->get(); |
This file contains hidden or 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
DB::table('hoge')->where('id', '=', 1) | |
->where( function( $query, $name ) { | |
$query->where('name', '=', $name); | |
}) | |
->get(); |
This file contains hidden or 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
local.ERROR: exception 'ErrorException' with message 'Missing argument 2 for DB::{closure}()' |
This file contains hidden or 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
DB::table('hoge')->where('id', '=', 1) | |
->where( function( $query ) use( $name ) { | |
$query->where('name', '=', $name); | |
}) | |
->get(); |
This file contains hidden or 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 | |
class model1 extends common { | |
} |
This file contains hidden or 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 | |
class model2 extends common { | |
} |
This file contains hidden or 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 | |
class common extends Eloquent { | |
// ε ±ιε¦η | |
} |