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 | |
$my_array = array("red","green","blue","yellow","purple"); | |
shuffle($my_array); | |
print_r($my_array); | |
?> |
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
DB::table('users') | |
->where('name', '=', 'John') | |
->orWhere(function($query) | |
{ | |
$query->where('votes', '>', 100) | |
->where('title', '<>', 'Admin'); | |
}) | |
->get(); |
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 | |
// Just create your routes for Auth, and this one to return a token | |
/////////////////////////////////////////////////////////////////// | |
// route: | |
Route::get('/auth/token', 'App\Modules\Auth\Controllers\AuthController@token'); | |
// controller action | |
class AuthController extends \BaseController{ | |
public function token() |
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
http://laravel.com/docs/html#csrf-protection |
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
http://www.stockt-shirtdesigns.com/skeleton-hand-holding-anatomical-red-heart-with-free-tee-design/ |
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
http://www.coolphptools.com/color_extract |
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
http://blog.neoxia.com/laravel4-and-angularjs/ |
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
http://www.keltdockins.com/blog/laravel-4-csrf-token-and-ajax-using-jquery | |
Angular way : | |
`$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }. | |
The defaults can also be set at runtime via the $http.defaults object in the same fashion. For example: | |
module.run(function($http) { | |
$http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w' | |
}); |
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
http://www.smartfren.com/css/img/uploaded/Update_Modem/Tabel_04_rev5.jpg |
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
http://s.bootply.com/render/cJJiNPzvy6# | |
Boostrap with diffrent height |
OlderNewer