Navigate to PHPStorm's Settings > Tools > Terminal and set...
Shell path "cmd" /k "C:\laragon\bin\cmder\vendor\init.bat"
Navigate to PHPStorm's Settings > Tools > Terminal and set...
Shell path "cmd" /k "C:\laragon\bin\cmder\vendor\init.bat"
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
server { | |
listen 80; | |
listen [::]:80; | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
root /PROJECT_PATH/public; | |
index index.html index.htm index.php index.nginx-debian.html; |
#!/bin/sh | |
if ! type "jq" > /dev/null; then | |
echo "Please install jq command to commit. run command 'brew install jq'" | |
exit 1 | |
fi | |
currentVersion=$(jq .version .version.json | bc -l) | |
currentBuildNumber=$(jq .build_number .version.json | bc -l) |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: hafiq | |
* Date: 21/04/2019 | |
* Time: 7:17 PM | |
*/ | |
namespace App\Http\Traits; |
The Laravel explination, shown below is confusing.
Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.
Many examples use Cache::get('key')
to demonstrate how a Facade works. Comparing the following code to the utility that a Facade provides.
$(function () { | |
"use strict"; | |
jsGrid.setDefaults({ | |
tableClass: "jsgrid-table table table-striped table-hover" | |
}); | |
jsGrid.setDefaults("text", { | |
_createTextBox: function() { | |
return $("<input>").attr("type", "text").attr("class", "form-control input-sm") |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: hafiq | |
* Date: 28/02/2018 | |
* Time: 9:30 AM | |
*/ | |
namespace App\Library; |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class MinifyHtml | |
{ | |
/** | |
* Handle an incoming request. |
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=1 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=512 |