-
open terminal and run
export XDEBUG_CONFIG="idekey=VSCODE"
-
install xdebug for vscode
-
add launch config
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 | |
namespace App\Http\Middleware\External; | |
use GrahamCampbell\Binput\Facades\Binput; | |
use Illuminate\Foundation\Http\Middleware\TransformsRequest; | |
class CleanEvilInput extends TransformsRequest | |
{ | |
/** |
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
:loop | |
php artisan schedule:run 1>> NUL 2>&1 | |
timeout /t 60 /nobreak > NUL | |
goto loop |
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 | |
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; |
-
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;
- get current theme styles
// https://stackoverflow.com/questions/47117621/how-to-get-the-vscode-theme-color-in-vscode-extensions
const color = new vscode.ThemeColor('badge.background');
- commands icons can use vscode builtin
"commands": [
// ... ,
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
/** | |
* 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 |
<div class="item">ABC</div>
@keyframes spin {
0% {
transform: translate(0, 0) scale(1) rotateY(0deg);
}
- php assoc array to correct js array of objs
$data = [
'Users' => 'abc',
'posts' => 'blabla',
];
collect($data)->map(function ($v, $k) {
return [
NewerOlder