In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
if not empty (@token) then | |
set @rows = LookupRows("Rest api authorization","AccessToken",@token) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then | |
If @action=="get" and not empty (@entrycode) then | |
set @rows = LookupRows("Register","EntryCode",@entrycode) | |
set @rowCount = rowcount(@rows) | |
If @rowCount==0 then | |
output(v(@JsonNotFound)) |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
<?php | |
/** | |
* ART GAMES BNR Rate Class | |
* | |
* @description A currency rate method for Laravel using BNR's api. The main currency is Romanian LEU (RON). Price response from BNR is compared with the RON currency. The method uses Laravel's caching properties. | |
* @usage \App\Models\Bnr::curs("EUR") | |
* @author Daniel Placinta <[email protected]> | |
* @license MIT | |
*/ |
{ | |
"name": "project-name", | |
"description": "Template for static sites", | |
"version": "1.0.0", | |
"homepage": "http://www.project-name.com", | |
"author": { | |
"name": "Adam Reis", | |
"url": "http://adam.reis.nz" | |
}, | |
"license": "UNLICENSED", |
The solution above for 5.2 should still work. In 5.5+ you just need to change bootstrap/autoload.php to vendor/autoload.php. | |
<?php | |
require '/path/to/laravel/vendor/autoload.php'; | |
$app = require_once '/path/to/laravel/bootstrap/app.php'; | |
$app->make('Illuminate\Contracts\Http\Kernel') | |
->handle(Illuminate\Http\Request::capture()); |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
'use strict'; | |
var Octokat = require('octokat'); | |
var extend = require('lodash/object/assign'); | |
var defaults = { | |
branchName: 'master', | |
token: '', | |
username: '', | |
reponame: '' |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
<template name="ForgotPassword"> | |
<form action="/forgot" id="forgotPasswordForm" method="post"> | |
<input id="forgotPasswordEmail" type="text" name="email" placeholder="Email Address"> | |
<input class="btn-submit" type="submit" value="Send"> | |
</form> | |
<!-- end #forgot-password-form --> | |
</template> |