Skip to content

Instantly share code, notes, and snippets.

View mishajib's full-sized avatar
👌
SOFTWARE ENGINEER

MI Shajib mishajib

👌
SOFTWARE ENGINEER
View GitHub Profile
@mishajib
mishajib / Laravel Cache Clear
Created July 10, 2019 09:15 — forked from Merazsohel/Laravel Cache Clear
Laravel Cache Clear
Route::get('artisan/command/{key?}', array(function($key = null)
{
Artisan::call('config:clear');
if($key == "cache-clear")
{
try
{
echo '<br>php artisan cache:clear...';
Artisan::call('cache:clear');
@mishajib
mishajib / upazilla-bd-list
Created July 10, 2019 09:16 — forked from Merazsohel/upazilla-bd-list
upazilla-bd-list
<div class="col-sm-3">
<select class="form-control">
<option>Choose One</option>
<option value="Akkelpur">Akkelpur</option>
<option value="Joypurhat Sadar">Joypurhat Sadar</option>
<option value="Kalai">Kalai</option>
<option value="Khetlal">Khetlal</option>
<option value="Panchbibi">Panchbibi</option>
<option value="Adamdighi">Adamdighi</option>
<option value="Bogra Sadar">Bogra Sadar</option>
@mishajib
mishajib / Zilla-bd-list
Created July 10, 2019 09:16 — forked from Merazsohel/Zilla-bd-list
Zilla-bd-list
<select class="form-control">
<option>Choose One</option>
<option value="Barguna">Barguna</option>
<option value="Barisal">Barisal</option>
<option value="Bhola">Bhola</option>
<option value="Jhalokati">Jhalokati</option>
<option value="Patuakhali">Patuakhali</option>
<option value="Pirojpur">Pirojpur</option>
<option value="Bandarban">Bandarban</option>
<option value="Brahmanbaria">Brahmanbaria</option>
@mishajib
mishajib / Laravel Tinker CRUD Operation Command
Last active July 16, 2019 19:21
Laravel Tinker CRUD Operation Command
For Using Laravel Tinker First You have to run the below command:
=======================================================================
"php artisan tinker"
CREATE OPERATION
====================
DB::table("companies")->insert(["name"=>"mi","email"=>"abc@gmail.com","location"=>"demo_location","created_at"=>new DateTime])
Single row insertion
=====================
@mishajib
mishajib / artisan command fixing in cpanel.txt
Last active June 13, 2023 22:49
Laravel Artisan Command Fixed for cpanel (php artisan command not worked)
For fix the problem follow this instructions-->
1. Open terminal from Cpanel
2. cd to your project directory
3. Then run /usr/local/bin/ea-php72 artisan {command}
That's it, now you can run artisan command easily.
@mishajib
mishajib / RoleComponent.vue
Created December 9, 2019 18:38
Role Component Code
<template>
<v-data-table
item-key="name"
class="elevation-1"
:headers="headers"
:items="roles"
sort-by="name"
color="error"
:loading="loading"
loading-text="Loading... Please wait"
@mishajib
mishajib / vscode_shortcuts.md
Created July 22, 2020 13:56 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@mishajib
mishajib / ascii.php
Last active September 4, 2020 18:00
Find ASCII code from character and Find CHARACTER from ascii code
<?php
#==================================
# AUTHOR - MI SHAJIB
#==================================
// find ascii code from character
echo "=====================================";
echo PHP_EOL;
echo "ASCII CODE FROM CHARACTER";
@mishajib
mishajib / forloopmultiplesteping.php
Created September 4, 2020 17:59
PHP For Loop Multiple Steping
<?php
<?php
# Author - MI SHAJIB
#===============================
# MULTIPLE STEPING IN FOR LOOP
#===============================
for ($i = 10, $j = 1; $i > 0; $i--, $j++) {
echo $i . ":" . $j;
echo PHP_EOL;