Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mdmuzammalhoq's full-sized avatar
💭
Earning and Learning

MD. MUZAMMAL HOQ mdmuzammalhoq

💭
Earning and Learning
View GitHub Profile
@mdmuzammalhoq
mdmuzammalhoq / ServerCommand-NGINX.txt
Created May 23, 2021 09:24
LiveChat of Cleanbook
root@cleanbook:/var/www/html# adduser bongo_usr
usermod -aG sudo bongo_usr
ufw app list
ufw allow OpenSSH
ufw enable
@mdmuzammalhoq
mdmuzammalhoq / Vue Definitions
Created May 12, 2021 03:00
Vue Definitions
State -> store, space
Getters -> data getting
mutations -> change state data
Actions -> Order mutations to change specific data
Module -> chapter
$table->boolean('approved')->default('0')->nullable() ======= // in user table
// approval middleware
public function handle($request, Closure $next){
if(auth()->check())
{
if(!auth()->user()->approved){
auth()->logout();
if(request()->hasFile('avatar')){
$avatar = request()->file('avatar')->getClientOriginalName();
request()->file('Avatar')->storeAs('avatars', $user->id.'/'.$avatar, '');
$avatar->update(['avatar]=>$avatar);
}
return $user;
@mdmuzammalhoq
mdmuzammalhoq / Ads setting in detail page
Created January 14, 2021 04:06
after 1 or 2 or 3 para to set google ads
-------------php-----------------
<div class="content-details">
<?php echo $details;?>
</div>
<div id="images">
<?php if(!empty($quatation)){ ?>
<?php
$quatation=unserialize($details);
Laravel file download
npm install
admin-lte (npm install admin-lte@v3.0.4 --save)
npm run dev
database setup
Adding Laravel Homestead as a Dependency for The Laravel Project
Preparing and Configuring Laravel Homestead
Adding the Virtual Domain on The System
Using Vagrant to Manage the Laravel Homestead Virtual Machine
Keep The Laravel Project Updated
zen coding
sublimecodeintel -> defination of Location
SideBarEnhancement
SublimeLinter-php -> For PHP error finder
PHPCompanion -> find on github =[
Sublime->preferences->key bindings->replace github codes
php artisan ti
factory(App\User::class, 200)->create()
***************************************************************
$q = App\Question::first();
$q->answers()->save(factory(App\Answer::class)->make());
$a = App\Answer::find(1);
$a->votes_count = 7