- php assoc array to correct js array of objs
$data = [
'Users' => 'abc',
'posts' => 'blabla',
];
collect($data)->map(function ($v, $k) {
return [
$data = [
'Users' => 'abc',
'posts' => 'blabla',
];
collect($data)->map(function ($v, $k) {
return [
<div class="item">ABC</div>
@keyframes spin {
0% {
transform: translate(0, 0) scale(1) rotateY(0deg);
}
/** | |
* demo1.js | |
* http://www.codrops.com | |
* https://github.com/codrops/ScrollingLettersAnimation | |
* | |
* Licensed under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Copyright 2018, Codrops | |
* http://www.codrops.com |
// https://stackoverflow.com/questions/47117621/how-to-get-the-vscode-theme-color-in-vscode-extensions
const color = new vscode.ThemeColor('badge.background');
follow https://laravel.com/docs/master/eloquent-relationships#many-to-many-polymorphic-relations except Defining The Inverse Of The Relationship
, instead we will use the below
thanx to setup oneToMany relation between tag & taggable
under taggable model
<?php
use Illuminate\Database\Eloquent\Relations\MorphPivot;
<?php | |
namespace App\Exports; | |
use Maatwebsite\Excel\Events\AfterSheet; | |
use Maatwebsite\Excel\Concerns\Exportable; | |
use Maatwebsite\Excel\Concerns\WithEvents; | |
use Maatwebsite\Excel\Events\BeforeExport; | |
use Maatwebsite\Excel\Concerns\WithMapping; | |
use Maatwebsite\Excel\Concerns\WithHeadings; |
:loop | |
php artisan schedule:run 1>> NUL 2>&1 | |
timeout /t 60 /nobreak > NUL | |
goto loop |
<?php | |
namespace App\Http\Middleware\External; | |
use GrahamCampbell\Binput\Facades\Binput; | |
use Illuminate\Foundation\Http\Middleware\TransformsRequest; | |
class CleanEvilInput extends TransformsRequest | |
{ | |
/** |
open terminal and run
export XDEBUG_CONFIG="idekey=VSCODE"
install xdebug for vscode
add launch config