Create new migration script:
php artisan make:migration add_api_token --table=users
<!-- See: https://jsfiddle.net/edwinencomienda/eywraw8t/444118/ --> | |
<div id="app"> | |
<form @submit.prevent="onSubmit"> | |
<input type="file" @change="onFileChange"> | |
<button>Submit</button> | |
</form> | |
</div> | |
<script> | |
new Vue({ |
$users_ids = [1,3,2]; | |
$items = collect($users_ids); | |
$fields = $items->map(function ($ids){ | |
return '?'; | |
})->implode(','); | |
$ordered = User::orderbyRaw("FIELD (id, ".$fields.")", $items->prepend('id')) | |
->find($users_ids)->pluck('id'); |
const this_ = {}; | |
this_.questions: { | |
id: null, | |
text: '', | |
description: null, | |
enabled: 1, | |
recipients: [] | |
}; |
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. That way you can keep each project in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. This intermediate guide covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda
). See the Using the workflow section to view the end result.
const reducer = ( state = [], action) => { | |
if (action.type === 'split_string') { | |
return action.payload.split(''); | |
} | |
if (action.type === 'add_character') { | |
return [...state, action.payload]; | |
} | |
return state; | |
}; |
/** | |
* @param string $string | |
* @param string $pad | |
* @param int $expected_length | |
* @return string | |
*/ | |
function str_pad($string, $pad, $expected_length) | |
{ | |
$left = $expected_length - strlen($string); | |
while ($left > 0) { |
<?php | |
namespace Tests\Unit; | |
use Tests\TestCase; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class ExampleTest extends TestCase | |
{ |