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 | |
private function indexVector(SplFileInfo $file, string $content): void | |
{ | |
$metaData = $this->getMetaData($file, $content); | |
/** @var RedisVector $redisVectorService */ | |
$redisVectorService = app(RedisVector::class); | |
/** @var \Exdeliver\LaraPal\Connectors\VoyageAIEmbedding $voyage */ |
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 LocalValetDriver extends Valet\Drivers\ValetDriver | |
{ | |
/* | |
|-------------------------------------------------------------------------- | |
| Document Root Subdirectory | |
|-------------------------------------------------------------------------- | |
| | |
| This subdirectory contains the public server resources, such as the |
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
<video autoplay loop muted playsinline preload="metadata" webkit-playsinline="webkit-playsinline"> | |
<source src="https://yoururl.test/video/smallerbg-te.mp4" type="video/mp4"/> | |
</video> |
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 php:7.4-fpm | |
RUN apt-get update && apt-get install -y libldb-dev libldap2-dev libzip-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev \ | |
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) zip pdo pdo_mysql gd ldap pcntl opcache |
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 | |
namespace App\Services; | |
use ArrayIterator; | |
use Carbon\Carbon; | |
use Illuminate\Support\Collection; | |
class TimeService | |
{ |
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
cp /usr/local/etc/openssl/cert.pem /usr/local/etc/openssl/cert.pem.bak && cat ~/.config/valet/CA/LaravelValetCASelfSigned.pem >> /usr/local/etc/openssl/cert.pem |
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 | |
/** | |
* This driver serves TYPO3 instances (version 7.0 and up). It activates, if it | |
* finds the characteristic typo3/ folder in the document root, serves both | |
* frontend and backend scripts and prevents access to private resources. | |
*/ | |
class LocalValetDriver extends ValetDriver | |
{ | |
/* |
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
Preferences -> tools -> File watchers | |
// Program | |
vendor/path/to/phpcs | |
// Arguments | |
--standard=phpcs.xml --encoding=utf-8 $FilePath$ | |
// Working directory and environments variables | |
/path/to/your/project/dir |
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 | |
namespace App\Queries; | |
use Spatie\QueryBuilder\QueryBuilder; | |
abstract class AbstractQuery extends QueryBuilder | |
{ | |
/** | |
* @var array |
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 OverviewController | |
{ | |
/** | |
* Process the request and apply to a session. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param string $filter | |
* @return \Illuminate\Http\Request |
NewerOlder