The easiest way is to ALT + F2
and then run this command: gnome-shell -r (--replace)
I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.
Each file should be put in /usr/local/vesta/data/templates/web/apache2
Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
linear-gradient(to right, #ff4747 0%,#ffe349 16%,#49ff7a 41%,#49b9ff 59%,#49b9ff 59%,#494fff 73%,#f549ff 87%,#ff474a 100%) |
I hereby claim:
- I am peterbrinck on github.
- I am peterbrinck (https://keybase.io/peterbrinck) on keybase.
- I have a public key ASCC8XKltzHrq9LokDv_-Z-kv0pL164RJ5upUaDPERwOaQo
To claim this, I am signing this object:
<?php | |
namespace App\Casts; | |
use Illuminate\Contracts\Database\Eloquent\CastsAttributes; | |
class EncryptedJson implements CastsAttributes | |
{ | |
/** | |
* Cast the given value. |
Create a cluster on GKE:
gcloud container clusters create backend --num-nodes=2 --machine-type n1-standard-4
Get credentials:
gcloud container clusters get-credentials backend
Build the docker image:
Register the macro in a service provider or use the MacroServiceProvider
to keep things tidy. Be sure to register it in the array in the /bootstrap/providers.php
file.
You can then use the test example to “use” a dataset to run through your validation rules.
It will execute each item in the dataset, building the request for the provided parameter and the (incorrect) value, and then assert that the error is as expected.
If the validation fails to run, the error will not be found, and the test will fail. Similarily, if the error message changes, the test will fail.