$name = 'Lucas';
$greeting = null;
if (is_null($name)) {
$greeting = 'No name was provided';
} else {
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
ZSH_THEME="spaceship" | |
plugins=(git zsh-autosuggestions) | |
function artisan { | |
( php artisan $* ) | |
} | |
function phpunit { | |
( vendor/bin/phpunit $* ) |
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
version: '2' | |
services: | |
cstrike: | |
image: jarlefosen/cs16 | |
container_name: cs16_server | |
ports: | |
- 26900:26900/udp | |
- 27020:27020/udp | |
- 27015:27015/udp |
YOU MIGHT NOT NEED JQUERY PLUGINS
YOU MIGHT NOT NEED JQUERY
YOU MIGHT NOT NEED
YOU MIGHT NOT
YOU MIGHT
Route::get('/api/users/{id}', function ($id) {
return App\User::find($id);
});
{
"id": 1,
"name": "Anakin Skywalker",
"email": "[email protected]",
"created_at": "2017-02-14 01:53:04",
"updated_at": "2017-02-14 01:53:04"
}
public function testPartialJsonResponse()
{
$response = $this->json('GET', '/api/users/1');
$response
->assertStatus(200)
->assertJsonFragment([
'name' => 'Anakin Skywalker',
]);
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
swal({ | |
title: 'Bom trabalho!', | |
text: 'O seu pedido foi cadastrado com sucesso!', | |
icon: 'success', | |
button: 'Imprimir', | |
}) | |
.then(function () { | |
window.location.href = '/cadastro/servico' | |
}) |
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
# | |
# Spaceship ZSH Theme | |
# | |
# Author: Denys Dovhan, denysdovhan.com | |
# License: MIT | |
# https://github.com/denysdovhan/spaceship-zsh-theme | |
# ------------------------------------------------------------------------------ | |
# CONFIGURATION | |
# The default configuration that can be overridden in .zshrc |