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
case "4" : | |
$extension = \Input::file('product_category_csv')->getClientOriginalExtension(); | |
$filename = strtotime(\Carbon\Carbon::now()) . '_' . mt_rand(0, 99999) . '.' . $extension; | |
\File::put(public_path("media/" . $filename), \File::get(\Input::file('product_category_csv'))); | |
$counter= 0; | |
if(($handle = fopen(public_path().'/media/'.$filename,"r"))!==FALSE) | |
{ | |
fgetcsv($handle); | |
while(($data = fgetcsv($handle,1000,","))!==FALSE) | |
{ |
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
<html> | |
<head> | |
<title>YIPL Code task</title> | |
</head> | |
<body> | |
<?php | |
$file = fopen('example.log', 'r') or die ('File opening failed'); | |
$line = fgets($file); | |
while (!feof($file)) { |
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
one can simply go into https://logentries.com and login | |
one should then choose the libraries. | |
Its PHP in our case | |
Then a new window will open where one can write the name of the Log set. | |
after writing one should hit the create token button which will render the log entries token one can simply copy and paste that into the .env file |
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
First of all one needs to have a heroku account. | |
one can got into https://www.heroku.com/ and create a free account | |
(make sure to have php and composer installed) | |
install the heroku CLI by typing in | |
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
or you can choose other options according to your OS. | |
After installing Go inside of the laravel project | |
and type in your email and password after heroku login |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>PhpFiddle Initial Code</title> | |
<script type="text/javascript"> | |
</script> |
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
hey di.. | |
how its goin?been a long time..hadnot had chat wid you. | |
i was thinking to hab a chat wid you from ..so just writing dis to you today!!! | |
oho bhai lai eso aekchoti samjhinu ni vayena hai? | |
how was dashain? | |
how are your days goin on ? | |
how is your study goin on? | |
dhan katnu vayo ki nai? |
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
Route::prefix('api')->group(function() { | |
Route::resource('notes', 'NotesController'); | |
Route::put('/notes/{note}/toggleFavourite', 'NotesController@toggleFavourite'); | |
}); |
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 | |
namespace App\Http\Controllers; | |
use App\Note; | |
use Illuminate\Http\Request; | |
class NotesController extends Controller | |
{ | |
/** |
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
{ | |
"private": true, | |
"scripts": { | |
"dev": "npm run development", | |
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch-poll": "npm run watch -- --watch-poll", | |
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"prod": "npm run production", | |
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" |
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
<!doctype html> | |
<html lang="{{ app()->getLocale() }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>Note App</title> | |
<!-- Fonts --> |
OlderNewer