Skip to content

Instantly share code, notes, and snippets.

View alcir-junior-caju's full-sized avatar

Alcir Junior alcir-junior-caju

View GitHub Profile
<?php
namespace TrustTattoo\Http\Controllers\Admin;
use TrustTattoo\Contact;
use TrustTattoo\Http\Controllers\Controller;
use TrustTattoo\Http\Requests\CsvImportRequest;
class ImportCsvController extends Controller
{
<?php
namespace TrustTattoo;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
class Contact extends Model
{
public $timestamps = false;
<?php
namespace TrustTattoo;
use TrustTattoo\Presenters\ContactPresenter;
use Laracasts\Presenter\PresentableTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
class Contact extends Model
<?php
namespace TrustTattoo\Presenters;
use Illuminate\Support\Carbon;
class ContactPresenter extends BasePresenter
{
public function getFullName()
{
@alcir-junior-caju
alcir-junior-caju / themosis.sh
Created February 17, 2019 18:31
Script Install Themosis
#!/bin/bash
# Params
dir=${1} # Name Project Dir
version=${2} # Version Themosis 2.0-beta3
# Change your Params
user='root'
pass='root'
db='mysql'
<?php
namespace App\Widgets;
use App\Post;
use Illuminate\Support\Str;
use TCG\Voyager\Widgets\BaseDimmer;
use Illuminate\Support\Facades\Auth;
class Posts extends BaseDimmer
{
"type": "collective",
"content": [
{
"title": "Título",
"description": "Descrição",
"members": [
{
"photo": "user-1.jpg",
"name": "Nome"
@alcir-junior-caju
alcir-junior-caju / README-Template.md
Created October 17, 2019 18:48 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@alcir-junior-caju
alcir-junior-caju / docker-compose.yml
Last active November 8, 2019 12:40
Criar versões para PHP laradock
# em docker-compose.yml usar o código para novas pastas do fpm
### PHP-FPM ##############################################
php-fpm:
build:
context: ./php-fpm
args:
- CHANGE_SOURCE=${CHANGE_SOURCE}
- LARADOCK_PHP_VERSION=${PHP_VERSION}
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCouponsTable extends Migration
{
/**
* Run the migrations.