This file contains hidden or 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
FROM laravelphp/vapor:php83 | |
ARG IMAGICK_VERSION=3.7.0 | |
RUN apk --update add \ | |
ghostscript && \ | |
rm /var/cache/apk/* | |
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \ | |
&& tar --strip-components=1 -xf /tmp/imagick.tar.gz \ |
This file contains hidden or 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
function c { | |
git add --all | |
git commit -m $1 | |
} | |
function p { | |
git add --all | |
git commit -m $1 |
This file contains hidden or 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 | |
class BookRepository | |
{ | |
protected $book; | |
public function __construct(Book $book) | |
{ | |
$this->book = $book; | |
} |