Skip to content

Instantly share code, notes, and snippets.

View shameemreza's full-sized avatar
🇧🇩
Problem-Solver | WooCommerce Expert | Customer-First Mindset

Shameem Reza shameemreza

🇧🇩
Problem-Solver | WooCommerce Expert | Customer-First Mindset
View GitHub Profile
<div class="input-group mb-3">
<input type="email" name="EMAIL" class="form-control" placeholder="Recipient's email"
aria-label="email address" aria-describedby="button-addon2">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="submit"
id="button-addon2">Subscribe</button>
</div>
</div>
<div class="row form-area">
<div class="col-md-4 col-sm-12 col-xm-12">
<div class="form-group">
<label>Full Name <span>*</span></label>
[text* your-name class:form-control]
</div>
</div>
<div class="col-md-4 col-sm-12 col-xm-12">
<div class="form-group">
<label>Email <span>*</span></label>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Schedule</label>
[date* date class:form-control]
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Email Address</label>
<div class="row">
<div class="col-md-4 col-sm-4">
<label>Distance(km)</label>
[text* distance class:form-control]
</div>
<div class="col-md-4 col-sm-4">
<label>Weight(kgs)</label>
[text* weight class:form-control]
</div>
<div class="col-md-4 col-sm-4">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Booking no, Containers no or B/L</label>
[text* booking-no class:form-control]
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Email Address</label>
@shameemreza
shameemreza / arr::divide.php
Created April 6, 2020 23:39
arr::divide()
// We import the support for this Helper
use Illuminate\Support\Arr;
// We use the method Arr::divide()
[$keys, $values] = Arr::divide(['name' => 'Shameem Reza', 'price' => '3.40']);
// We obtain the keys and values separately
$keys: ['name', 'price']
$values: ['Shameem Reza', '3.40']
@shameemreza
shameemreza / blank.php
Created April 6, 2020 23:49
blank() Helper
// We analyze if there are blank or null values
blank('');
blank(' '); //Here we have blank spaces
blank(null);
// If there is a blank value or blank spaces we get 'true'
blank(0);
blank(true);
blank(false);
@shameemreza
shameemreza / strslug.php
Created April 6, 2020 23:52
Str::slug()
$url = Str::slug('Shameem Reza');
// We get the following friendly URL
gelatina-de-fresa
@shameemreza
shameemreza / strslug2.php
Created April 6, 2020 23:53
Str::slug()
$url = Str::slug('Shameem Reza', '+');
// We get the following friendly URL
shameem+reza
@shameemreza
shameemreza / arrhas.php
Created April 7, 2020 00:00
Arr::has()
// We import the support for this Helper
use Illuminate\Support\Arr;
$products = ['drinks' => ['Name' => 'Strawberry Juice', 'price' => '3.60']];
$check = Arr::has($products, 'drinks.name');
// We get true
$check = Arr::has($products, ['drinks.name', 'drinks.price']);