This file contains 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
We all know how painful it is to setup a beautiful application and then just discover that it sucks once it lands in your shared server. Here is how you can remove that annoying that annoying 'public' url path in your laravel application | |
1. change server.php in your root folder to index.php , no modifications pls | |
2. create a .htaccess file in your root folder | |
3. paste the code below | |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> |
This file contains 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
<GridRow reset> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<select | |
name='document_type[]' | |
id='document_type' | |
required | |
> | |
<option value=''>Document Type</option> | |
<option value'britain'> Britain </option> |
This file contains 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 | |
$users2 = DB::select('select * from users where active = ?', [1]); // user raw sql and prepared statements | |
$users1 = DB::table('users')->get(); // using query builder | |
@endphp | |
dd($users1) | |
dd($users2) |
This file contains 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
cd "C:%HOMEPATH%\.IntelliJIdea*\config" | |
rmdir "eval" /s /q | |
del "options\other.xml" | |
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f | |
:: This will work for idea 2018.3 and later | |
:: | |
:: It is Highly Advised to Purchase the JetBrain Softwares | |
:: This is only for the case You just want to Extend the | |
:: Trial Period and Evaluate the IDE for some more Time |
This file contains 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
const statesInNigeria = [ | |
{ | |
state: "ABIA", | |
lga: ["AROCHUKWU", "INI ", "OBI NGWA", "UGWUNAGBO", "UKWA EAST "], | |
}, | |
{ | |
state: "ADAMAWA", | |
lga: [ | |
"DEMSA", | |
"FUFORE", |
This file contains 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
<!-- Display the countdown timer in an element --> | |
<p id="demo"></p> | |
<script> | |
// Set the date we're counting down to | |
var localTime = new Date("Jan 5, 2021 15:37:25").getTime(); | |
// convert the time to the current timezone | |
var localOffset = new Date("Jan 5, 2021 15:37:25").d.getTimezoneOffset() * 60000; |
This file contains 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 | |
/*******EDIT LINES 3-8*******/ | |
$DB_Server = "localhost"; //MySQL Server | |
$DB_Username = "root"; //MySQL Username | |
$DB_Password = ""; //MySQL Password | |
$DB_DBName = "backoffice"; //MySQL Database Name | |
$filename = "excelfilename"; //File Name | |
/*******YOU DO NOT NEED TO EDIT ANYTHING BELOW THIS LINE*******/ | |
//create MySQL connection | |
$sql = 'Select * from $DB_TBLName'; |
This file contains 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
# set the items the store sells | |
shopItems = [ | |
{ | |
"item": "Beans", | |
"price": 1000, | |
}, | |
{ | |
"item": "Rice", | |
"price": 200, | |
}, |
OlderNewer