Skip to content

Instantly share code, notes, and snippets.

View jayenne's full-sized avatar

Jayenne Montana jayenne

View GitHub Profile
@jayenne
jayenne / AppServiceProvider.php
Created January 13, 2022 14:22 — forked from greenspace10/AppServiceProvider.php
Laravel, Livewire, Alpine JS Toast Notifications
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Component::macro('notify', function ($message, $title = '', $type = 'success') {
$this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]);
});
@jayenne
jayenne / sublime-phpcs.md
Created May 7, 2020 08:32 — forked from scrubmx/sublime-phpcs.md
Setup Phpcs for Sublime Text

Setup Phpcs for Sublime Text

This plugin adds PHP CodeSniffer, PHP Code Beautifier and Fixer, PHP Coding Standards Fixer, the PHP Linter, PHP Mess Detector, Scheck support to Sublime Text.

For more information about this plugin such as features, installation requirements etc, please see: http://benmatselby.github.io/sublime-phpcs

Prerequisites

  • Download and install composer
curl -sS https://getcomposer.org/installer | php