Skip to content

Instantly share code, notes, and snippets.

View shankhadevpadam's full-sized avatar

Padam Shankhadev shankhadevpadam

View GitHub Profile

Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

<?php
namespace App\Traits;
use App\Meta;
trait HasMeta
{
public function fromMeta($key)
{
return optional($this->meta->where('key', $key)->first())->value;