This file contains hidden or 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
# install composer | |
composer global require laravel/installer | |
# composer create-project laravel/laravel laravel-cms | |
# composer require laravel/jetstream | |
# php artisan jetstream:install livewire --teams |
This file contains hidden or 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 | |
if( !function_exists( 'pr' ) ) { | |
function pr() { | |
foreach( func_get_args() as $e ) { | |
echo "<pre>"; | |
print_r( $e ); | |
echo "</pre>"; | |
} |
This file contains hidden or 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
if( !function_exists( 'pr' ) ) { | |
function pr() { | |
foreach( func_get_args() as $e ) { | |
echo "<pre>"; | |
print_r( $e ); | |
echo "</pre>"; | |
} | |
} | |
} |
This file contains hidden or 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
there is two command | |
before run command increase the size of | |
max_allowed_packet to 1072731894 | |
or | |
SET GLOBAL max_allowed_packet=1072731894 |
This file contains hidden or 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
$exif = exif_read_data($url); | |
if (!empty($exif['Orientation'])) { | |
$imageResource = imagecreatefromjpeg($url); // provided that the image is jpeg. Use relevant function otherwise | |
switch ($exif['Orientation']) { | |
case 3: | |
$image = imagerotate($imageResource, 180, 0); | |
break; | |
case 6: | |
$image = imagerotate($imageResource, -90, 0); |
This file contains hidden or 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
select chosen multiple value using id | |
$("#herb_cat1").val(["product", "premix"]).trigger("liszt:updated"); | |
select chosen single value using id | |
$("#herb_cat1").val(["product"]).trigger("liszt:updated"); |
This file contains hidden or 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
<section class="container"> | |
<section class="one"> | |
<div class="logo"> | |
<img src="https://image.flaticon.com/icons/svg/143/143361.svg"> | |
</div> | |
<h2 class="heading"> | |
please subscribe to get updates | |
</h2> | |
<p> signup with your email to get latest updates | |
</p> |
This file contains hidden or 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 | |
$data = array( | |
"sender" => array( | |
"email" => '[email protected]', | |
"name" => 'sender email' | |
), | |
"to" => array( |
This file contains hidden or 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
<style> | |
.buttons-csv{ | |
background: #ffb848 !important; | |
color: #fff !important; | |
font-weight: bold; | |
font-size: 13px !important; | |
} | |
#inventoryLot .modal-dialog { width: 600px; } | |
div#DataTables_Table_0_length { margin-right: 28px; } | |
.report_filter_div {margin-bottom: 40px; margin-top: 40px; } |
This file contains hidden or 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
<div class="portlet"> | |
<div class="portlet-body"> | |
<div class=""> | |
<!--<div class="span12s m-l-10 m-r-10">--> | |
<form id="lowStockForm" action="<?php echo make_admin_url('inventory_updated', 'inventory_levels', 'inventory_levels'); ?>" > | |
<!-- <input type="hidden" name="Page" value="inventory_updated"/> | |
<input type="hidden" name="action" value="inventory_levels"/> | |
<input type="hidden" name="section" value="inventory_levels"/> | |
<input type="hidden" name="stype" value="<?= $stype ?>"/> |