<?php $c = 0; ?>
@foreach($products as $product)
<?php $b = ( ++$c % 2 == 0 ) ? true : false; ?>
@if($b)
<div class="row ">
@endif
namespace App\Traits;
use Illuminate\Database\Eloquent\Builder;
trait Multitenantable {
protected static function bootMultitenantable()
{
## get rid of command not found ##
alias cd..='cd ..'
## a quick way to get out of current directory ##
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
NETSH WLAN set hostednetwork mode=allow ssid=Your_SSID key=Your_Passphrase
NETSH WLAN start hostednetwork
if the last cammand didn't work enable Microsoft Hosted Network Virtual Adapter
in 'Device Manager`
<form action="upload" id="upload" enctype="multipart/form-data">
<input type="file" name="file[]" multiple><br />
<input type="submit">
</form>
<div id="message"></div>
https://www.gravatar.com/avatar/' . md5(auth()->user()->email) . '?d=mm'
function gravatar(string $name): string
{
$gravatarId = md5(strtolower(trim($name)));
return 'https://gravatar.com/avatar/'.$gravatarId.'?s=240';
}
This gist assumes:
- you have a local git repo
- with an online remote repository (github / bitbucket etc)
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by apache
- apache's home directory is /var/www/
NewerOlder