sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0
sudo apt-get install php7.0-gd
sudo apt-get install php7.0-mysql
sudo apt-get install php-memcached
<?php | |
/** | |
* @return \App\User|null | |
*/ | |
function currentUser() | |
{ | |
return request()->user(); | |
} |
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0
sudo apt-get install php7.0-gd
sudo apt-get install php7.0-mysql
sudo apt-get install php-memcached
/**
* Validate some data.
*
* @param string|array $fields
* @param string|array $rules
* @return bool
*/
function validate($fields, $rules)
{
<scheme name="GitHub" version="142" parent_scheme="Default"> | |
<option name="FONT_SCALE" value="1.0" /> | |
<metaInfo> | |
<property name="created">2018-05-07T11:01:49</property> | |
<property name="ide">PhpStorm</property> | |
<property name="ideVersion">2018.1.0.0</property> | |
<property name="modified">2018-05-07T11:02:04</property> | |
<property name="originalScheme">GitHub</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="1.4" /> |
javascript:{window.location='https://ohdear.app/tools/reachable?prefill='+encodeURIComponent(window.location.href)} |
on: push | |
name: Run phpunit testsuite | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
container: | |
image: lorisleiva/laravel-docker:7.3 # Change this to 7.1/7.2/7.3 to specify the PHP Version | |
steps: |
<?php | |
namespace App\Libraries\Queue; | |
use Illuminate\Events\Dispatcher; | |
use Illuminate\Queue\DatabaseQueue; | |
use Illuminate\Support\Str; | |
use Laravel\Horizon\Events\JobDeleted; | |
use Laravel\Horizon\Events\JobPushed; | |
use Laravel\Horizon\Events\JobReleased; |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name sendy.freek.dev sendy.murze.be; | |
root /home/forge/sendy.freek.dev; | |
# FORGE SSL (DO NOT REMOVE!) | |
ssl_certificate /etc/nginx/ssl/sendy.freek.dev/xxxxxx/server.crt; | |
ssl_certificate_key /etc/nginx/ssl/sendy.freek.dev/xxxxxx/server.key; |
<?php | |
namespace Illuminate\Support; | |
/** @mixin \Illuminate\Support\Collection */ | |
class CatchableCollection | |
{ | |
protected $originalCollection; | |
protected $calledMethods = []; |
<?php | |
/* | |
* Define the servers | |
*/ | |
server('production-web', '<your server url>') | |
->path('<path to the project on your server>') | |
->user('<user on the server>') | |
->pubKey(); | |
/* |