First you need to install illuminate/validation
by typing this composer require illuminate/validation:5.1.*
.
Then, you can use laravel validation like this:
$validatorFactory = new ValidatorFactory;
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
var LatLngList = new Array (new google.maps.LatLng (52.537,-2.061), new google.maps.LatLng (52.564,-2.017)); | |
// Create a new viewpoint bound | |
var bounds = new google.maps.LatLngBounds (); | |
// Go through each... | |
for (var i = 0, LtLgLen = LatLngList.length; i < LtLgLen; i++) { | |
// And increase the bounds to take this point | |
bounds.extend (LatLngList[i]); | |
} | |
// Fit these bounds to the map | |
map.fitBounds (bounds); |
<script type="text/javascript" charset="utf-8"> | |
//Capitalize first letter while typing in side of input field | |
jQuery(document).ready(function($) { | |
$('#selector').keyup(function(event) { | |
var textBox = event.target; | |
var start = textBox.selectionStart; | |
var end = textBox.selectionEnd; | |
textBox.value = textBox.value.charAt(0).toUpperCase() + textBox.value.slice(1); | |
textBox.setSelectionRange(start, end); | |
}); |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Laravel Class Loader | |
|-------------------------------------------------------------------------- | |
| | |
| In addition to using Composer, you may use the Laravel class loader to | |
| load your controllers and models. This is useful for keeping all of | |
| your classes in the "global" namespace without Composer updating. |
<?php | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <sean@iamseanmurphy.com> | |
* @copyright Copyright 2012 Sean Murphy. All rights reserved. |
<?php | |
/* Instructions: | |
* 1. Add this class file to your app/Console folder | |
* 2. Register command in app/Console/Kernel by adding `\App\Console\Commands\MigrateSpecificCommand::class` it to commands array | |
* 3. Done, now you can access it like: php artisan migrate:specific 2014_10_12_000000_create_users_table,2014_10_12_100000_create_password_resets_table | |
*/ | |
namespace App\Console\Commands; |
<?php | |
public static function Render() | |
{ | |
#Sets Current Date | |
$dt = Carbon::createFromFormat('Y,m,d', Date('Y,m,d')); | |
// Make sure to start at the beginning of the month | |
$dt->startOfMonth(); | |
// Set the headings (weeknumber + weekdays) |
/** | |
* First we will load all of this project's JavaScript dependencies which | |
* includes Vue and other libraries. It is a great starting point when | |
* building robust, powerful web applications using Vue and Laravel. | |
*/ | |
require('./bootstrap'); | |
window.Vue = require('vue'); |
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
from os import system | |
import getopt | |
# |