Skip to content

Instantly share code, notes, and snippets.

View cpereiraweb's full-sized avatar

Claudio Pereira cpereiraweb

  • Rio de Janeiro, Brazil
View GitHub Profile
<?php
namespace App\Forms\Components;
use Closure;
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Field;
class DropInAction extends Field
{
@cpereiraweb
cpereiraweb / composer.json
Created July 21, 2023 16:49
composer.json [Laravel 10 + Filament 3]
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": [
"laravel",
"framework"
],
"license": "MIT",
"require": {
@cpereiraweb
cpereiraweb / composer.json
Created November 17, 2022 21:20
composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"bezhansalleh/filament-shield": "^2.3",
"filament/filament": "^2.0",
@cpereiraweb
cpereiraweb / Aliases
Created March 10, 2022 01:01 — forked from r2luna/Aliases
# -------------------------------------------------------------------------------------------
# ALIASES
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git
@cpereiraweb
cpereiraweb / VSCode
Created March 10, 2022 01:01 — forked from r2luna/VSCode
VSCode Settings
alefragnani.project-manager
amiralizadeh9480.laravel-extra-intellisense
antfu.icons-carbon
austenc.laravel-blade-spacer
bmewburn.vscode-intelephense-client
bradlc.vscode-tailwindcss
calebporzio.better-keybindings
calebporzio.better-phpunit
ceciljacob.code-plus-theme
cjhowe7.laravel-blade
@cpereiraweb
cpereiraweb / deploy.sh
Created February 14, 2022 23:09 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@cpereiraweb
cpereiraweb / AppNavigationMenu.php
Created June 11, 2021 19:22 — forked from rosswintle/AppNavigationMenu.php
Laravel Jetstream Livewire Navigation Menu
<?php
/**
* This class extends the base NavigationClass provided by Jetstream.
* Note that the base class includes the navigation-menu.blade.php
*/
namespace App\Http\Livewire;
class AppNavigationMenu extends \Laravel\Jetstream\Http\Livewire\NavigationMenu
{
@cpereiraweb
cpereiraweb / Inflector.php
Created February 8, 2021 23:31 — forked from pedroufv/Inflector.php
Pluralize pt-br
<?php
namespace Laravel\Support\Services;
class Inflector
{
/**
* @var array
*/
public static $rules = [
####
# ATENTION:
# Replace all occurences of sandbox with your project's name
####
# v2 syntax
version: '2'
# Named volumes
volumes:
@cpereiraweb
cpereiraweb / ubuntu-install-nodejs-npm.sh
Created August 7, 2017 19:44 — forked from kolosek/ubuntu-install-nodejs-npm.sh
Install node.js version 6.x Ubuntu 16.04
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
echo "Installing NodeJS 6.x"
sudo apt-get install nodejs
echo "Install webpack globally"
sudo npm install webpack -g
echo "Install nightwatch globally"
sudo npm install webpack -g