Skip to content

Instantly share code, notes, and snippets.

View yamin27's full-sized avatar
🏠
Working from home

Yamin Alam Sarker yamin27

🏠
Working from home
View GitHub Profile
//line 177
@if( $formatted_max_quantity > 0)
<p class="help-block text-success"><small> {{__('validation.custom-messages.quantity_not_available', ['qty'=> $formatted_max_quantity, 'unit' => $product->unit ])}} </small></p>
@else
<p class="help-block text-red"><small> {{__('validation.custom-messages.quantity_not_available', ['qty'=> $formatted_max_quantity, 'unit' => $product->unit ])}} </small></p>
@endif
custom massage chnage
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
sudo apt update
sudo apt upgrade
sudo apt-get install lunzip lzip uget hardinfo gwenview ibus-m17n git composer
sudo apt install apache2
sudo apt install mysql-server mysql-client
sudo systemctl status mysql
<IfModule mod_rewrite.c>
# Turn Off mod_dir Redirect For Existing Directories
DirectorySlash Off
# Rewrite For Public Folder
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
# checkout full Documentation here : https://github.com/maateen/avro
#install required package
sudo apt install gjs gir1.2-ibus-1.0 libibus-1.0-5 libibus-1.0-dev ibus-gtk ibus-gtk3 ibus-clutter ibus-qt4
# get avro file .deb
wget "https://github.com/maateen/avro/releases/download/v2.1/avro_2.1-3_all.deb"
# install avro
composer create-project laravel/laravel testLaravel
cd testLaravel
cp .env.example .env
git init
git add -A
git commit -m 'Initial commit'
php artisan key:generate
php artisan config:clear
php artisan config:cache
#File Upload
if (!empty($request->file('files'))) {
if (!file_exists(public_path() . '/files')) {
mkdir(public_path() . '/files', 0777, true);
}
foreach ($request->file('files') as $file) {