This file contains hidden or 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 artisan config:cache | |
php artisan config:clear |
This file contains hidden or 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
css code | |
.blog{ | |
max-height: 600px; | |
background: aqua; | |
} | |
Html Code | |
<div class="container"> |
This file contains hidden or 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
==================================================================== | |
controller.php | |
=========== | |
public function graphiQl() { | |
$shop = User::where('id', '=', "1")->get()->first(); | |
if ($shop) { | |
$shop_id = $shop->id; | |
$shop_name = $shop->shop_domain; | |
$shop_token = $shop->token; |
This file contains hidden or 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
1. Follow this link to install mongo "https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-amazon/". | |
2. After installaion paste this command "sudo service mongod restart". | |
3. After that write command "mongo" in the terminal | |
4. Then create user by this command "db.createUser({user:'user',pwd:'pwd',roles:[{role:'readWrite',db:'dbname'}]})". | |
4.1}. press ctrl+z. | |
5. Then you can connect your mongodb terminal via this command "mongo --port 27017 -u "user" -p "pwd" --authenticationDatabase "admin" ". | |
install pecl for mongodb driver |
This file contains hidden or 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
=============HTML==================== | |
<input type="checkbox" id="test1" /> | |
<label for="test1"> | |
<div class="text">Red</div></label> | |
</p> | |
<br> | |
<p> | |
<input type="checkbox" id="test2" checked="checked" /> |
This file contains hidden or 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
===================[Html Code]================================================== | |
<form id="upload_image" method="post" enctype="multipart/form-data"> | |
<input class="form-control" name="artistImage" type="file" id="artist_image"> | |
<input class="form-control" name="bannerImage" type="file" id="banner_image"> | |
<input type="submit" id="uploadButton" value="Upload Image" class="btn btn-primary black_button"> | |
</form> | |
=====================[JS]======================================================= |
This file contains hidden or 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
*************************** | |
1.How to get wishlist data | |
*************************** | |
------API--------- | |
getWishlistDetails | |
----Parameter---------- | |
action* |
This file contains hidden or 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
*************************** | |
1.How to get wishlist data | |
*************************** | |
------API--------- | |
getWishlistDetails | |
----Parameter---------- | |
action* |
This file contains hidden or 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
==> first go throw your your database where it is located | |
use command [zcat eatcake_app.sql.gz | mysql -u 'root' -p eatcake_app] |
This file contains hidden or 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 | |
$size="small"; | |
$filename="https://cdn.shopify.com/s/files/1/0324/1549/products/httpstatic.bigshoes.comimagesmodel_images7737xl.jpg?v=1496059618"; | |
$imageU=imgUrl($filename,$size); | |
echo $imageU; | |
function imgUrl($filename,$size){ | |
$extension_pos = strrpos($filename, '.'); // find position of the last dot, so where the extension starts | |
$thumb = substr($filename, 0, $extension_pos) ."_".$size . substr($filename, $extension_pos); | |
return $thumb; |
NewerOlder