Skip to content

Instantly share code, notes, and snippets.

View vicgonvt's full-sized avatar

Victor Gonzalez vicgonvt

View GitHub Profile
@vicgonvt
vicgonvt / deployment_guide.md
Last active March 17, 2024 06:51
Deployment Guide for Ubuntu Server from Scratch with Laravel

title: Macroable Laravel Classes (Full List) keywords: laravel, coderstape, coder's tape, macros description: The macro trait allows you to add functionality to many Laravel classes. Here's a list of all of them. date: AUg 30, 2019 tags: laravel, php permalink: macroable-laravel-classes-full-list img: https://coderstape.com/images/laravel-macros.jpg author: Victor Gonzalez authorlink: https://github.com/vicgonvt

@vicgonvt
vicgonvt / blog
Last active August 31, 2019 00:18
cd0431a5cdc043ebab7f4954f7b4d471
10db4bd5cc41d64675d01605ef555f8c
dc1d424e34c866c2544e1296206eb594
@vicgonvt
vicgonvt / Xdebug.md
Last active April 5, 2019 18:29
Instructions for Installing Xdebug in a Mac with Laravel, Valet and Sublime Text

NOTE: This assumes that you have Valet, Homebrew, Sublime Text and PHP properly installed and functioning and will only focus on the setup and installation and setup of Xdebug. There are other tutorials that go into great depth explaining how to get those tools installed on your mac.

Let's get started right away!

Installing Xdebug

You need to know which version of PHP you are running in your machine. To do so, from the terminal run the command php -v and this will display something like this

PHP 7.0.14 (cli) (built: Dec  8 2016 23:34:17) ( NTS )
---
title: My Title
keywords: keyword1, keyword2, keyword3
description: Description here
date: May 14 1988
series: My First Post
tags: Tag 42, Tag 2
img: https://via.placeholder.com/500x140
---

title: Title in Title Bar keywords: keyword1, keyword2, keyword3 description: Description here date: May 14 1988 series: My First Post tags: Tag 1, Tag 2 permalink: title-in-title-bar img: https://via.placeholder.com/500x140

Hello

Another time

<?php
function str_between($string, $start, $end, $innerOnly = true, $remove = false) {
if (($startPosition = strpos($string, $start)) === false || ($endPosition = strpos($string, $end)) === false) {
return false;
}
if ($innerOnly) {
$startPosition += strlen($start);
<template>
<ul>
<result v-for="result in results" :key="result.id">
@{{ result.id }}
</result>
</ul>
</template>
<script>
export default {