List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
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'); |
$targetFolder = $_SERVER['DOCUMENT_ROOT'].'/storage/app/public'; | |
$linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public/storage'; | |
symlink($targetFolder,$linkFolder); | |
echo 'Symlink process successfully completed'; |
<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> |
<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> |
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 | |
===================== |
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. |
<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" |
<?php | |
#================================== | |
# AUTHOR - MI SHAJIB | |
#================================== | |
// find ascii code from character | |
echo "====================================="; | |
echo PHP_EOL; | |
echo "ASCII CODE FROM CHARACTER"; |
<?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; |