Key Combination | Description |
---|---|
Ctrl + J |
Open live templates |
Ctrl + Alt + Shift + J |
Select text (With multiple cursor) |
Alt + Insert |
Open menu to Generate Documentation, Getter, Setter, etc. |
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 | |
// Set the limit to 50 MB. | |
$fiveMBs = 50 * 1024 * 1024; | |
$fp = fopen("php://temp/maxmemory:$fiveMBs", 'r+'); | |
fputs($fp, $couponString); | |
// Read what we have written. | |
rewind($fp); | |
header('Content-Description: File Transfer'); |
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
server { | |
listen 80 ; | |
listen [::]:80; | |
root /var/www/html/blog2/public/; | |
index index.php index.htm index.nginx-debian.html; | |
server_name blog2.com; | |
location / { |
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 | |
// output : | |
// 10 | |
// 100.234 | |
interface printable { | |
public function printme(); | |
} | |
abstract class Number { |
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 | |
// output : | |
// 53.454492$ | |
// 55.977413122858$ | |
interface CarInterface { | |
public function calcTankVolume(); | |
} |
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 | |
// Output : | |
// 53.454492$ | |
// 55.977413122858$ | |
abstract class Car { | |
protected $model; | |
protected $height; | |
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 | |
// File :: config/mail.php | |
'stream' => [ | |
'ssl' => [ | |
'allow_self_signed' => true, | |
'verify_peer' => false, | |
'verify_peer_name' => false, | |
], | |
], |
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 | |
$handle = fopen ("php://stdin", "r"); | |
function birthdayCakeCandles($n, $ar) { | |
// Complete this function | |
$max = $ar[0]; | |
$counts = []; | |
foreach($ar as $a) { | |
if(isset($counts[$a])) { | |
$counts[$a]++; |
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
"autoload": { | |
"classmap": [ | |
"database" | |
], | |
"psr-4": { | |
"App\\": "app/" | |
}, | |
"files":[ | |
"app/helpers.php" /* This line was added to load helper file. Then fire 'composer dump-autoload' command in terminal */ | |
] |
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 | |
// File location :: \app\Http\Middleware\debugger.php | |
namespace App\Http\Middleware; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Log; | |
use Closure; | |
class debugger { |