- Laravel main documentation: http://laravel.com/docs
- Laravel API: http://laravel.com/api/4.1
- Laravel nettuts+: http://net.tutsplus.com/tag/laravel/
- Laravel authentication driver: http://www.karlvalentin.de/1903/write-your-own-auth-driver-for-laravel-4.html
- Laravel on stackoverflow: http://stackoverflow.com/questions/tagged/laravel-4
- Laravel cheat sheet: http://cheats.jesse-obrien.ca/
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
#!/usr/bin/env bash | |
base=${PWD} | |
release=${base} | |
# Install all Composer dependencies | |
cd ${release}/flarum | |
composer require flarum/core:dev-master@dev --prefer-dist --update-no-dev | |
composer update --prefer-dist --optimize-autoloader --ignore-platform-reqs --no-dev |
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
#!/bin/bash | |
# | |
# Laravel update tool | |
# | |
# | |
# use: ./rollout.sh | |
# | |
# date: 2015-09-01 | |
# by D. Klabbers / HostingXS B.V. |
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
find . -type d -print0 | xargs -0 chmod 0755 | |
find . -type f -print0 | xargs -0 chmod 0644 |
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 | |
trait AuthenticatedTrait | |
{ | |
/** | |
* The check to see whether access is allowed to some route | |
* @return bool | |
*/ | |
public function allowedToAccessRoute() | |
{ |
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 Vendor\Package; | |
use Illuminate\Validation\Validator; | |
class ExtendedValidator extends Validator | |
{ | |
// use validation rule "foo" to use | |
public function validateFoo($attribute, $value, $parameters) | |
{ | |
return $value == "foo"; |
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
^([a-z0-9](-?[a-z0-9])*)+(\.[a-z0-9](-?[a-z0-9])*)*(\.[a-z0-9](-?[a-z0-9])+)+$ |
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
#!/bin/sh | |
# | |
# Obsolete; nginx 1.5.10 has in-built option for spdy, with compilation option: --with-http_spdy_module | |
# | |
# use ./install_nginx_w_spdy.sh <version> | |
NGINX_VERSION=$1 | |
TMP_PATH=/tmp |
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
TCPKeepAlive = yes | |
ServerAliveInterval = 30 | |
ServerAliveCountMax = 12 |
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 | |
require_once "<path>/<to>/hxsclient.php"; | |
if( array_key_exists( "domaincheck" , $_POST )) { | |
$api = new hxsclient( <username> , "<password>" , "<sandbox=true/false>" ); | |
$domainavailable = $api -> checkDomain( $_POST["domaincheck"] ); | |
} | |
// enter the form |