First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
<?php | |
// ini_set("auto_detect_line_endings", true); // If having issues on iOS | |
trait CSVSeeder { | |
public function csv_to_array($filename = '', $delimiter = ',') { | |
if (!file_exists($filename) || !is_readable($filename)) | |
return FALSE; | |
$header = NULL; | |
$data = array(); |
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="Laravel and similar phpmd ruleset" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description> | |
Inspired by https://github.com/phpmd/phpmd/issues/137 | |
using http://phpmd.org/documentation/creating-a-ruleset.html | |
</description> |
To make Postman work with POST/PUT requests... | |
https://laravel.com/docs/5.2/routing#csrf-x-csrf-token | |
In addition to checking for the CSRF token as a POST parameter, the Laravel VerifyCsrfToken middleware will also check for the X-CSRF-TOKEN request header. | |
1. Store the token in a "meta" tag at the top of your root view file (layouts/app.blade.php)... | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
** If using jQuery, you can now instruct it to include the token in all request headers. | |
$.ajaxSetup({ |
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content { | |
background-color: rgba(40, 44, 52, 1) !important; | |
} | |
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title { | |
background-color: rgba(40, 44, 52, 1) !important; | |
} | |
.tab.active, .tab { | |
border-right: 0px !important; |
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |