Skip to content

Instantly share code, notes, and snippets.

View dammyammy's full-sized avatar

Dammy O dammyammy

View GitHub Profile
@dammyammy
dammyammy / .htaccess
Created February 14, 2018 01:19
Laravel Optimal HTACCESS FILE
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
RewriteEngine On
@dammyammy
dammyammy / PostmarkServiceProvider.php
Created July 13, 2017 20:30 — forked from tylerodonnell/PostmarkServiceProvider.php
How to use Postmark SwiftMailer inside Laravel
<?php
namespace App\Providers;
use Postmark\Transport;
use Illuminate\Mail\MailServiceProvider;
class PostmarkServiceProvider extends MailServiceProvider
{
/**
@dammyammy
dammyammy / Running Tests on your Laravel Elixir Projects With Karma.md
Last active August 10, 2016 13:06
Running Tests on your Laravel Elixir Projects With Karma, Webpack & Jasmine

Running Tests on your Laravel Elixir Projects With Karma

You may want to run tests on your Javascript Files Within your Laravel Elixir Project, and wondering where to begin. Look no further, with Jasmine, Karma & Webpack, you'll be up and running in no time.

In this Tutorial I would be Using Vue, but feel free to adapt this to whatever you like.

Note This was tested with Laravel 5.3 (dev-develop branch), should work if you have your 5.2 or lower project configured to use webpack already. Laravel 5.3 comes with webpack out of the box.

Step 1: Installing Needed Dependencies via NPM

@tylerodonnell
tylerodonnell / PostmarkServiceProvider.php
Last active June 1, 2018 14:15
How to use Postmark SwiftMailer inside Laravel
<?php
namespace App\Providers;
use Postmark\Transport;
use Illuminate\Mail\MailServiceProvider;
class PostmarkServiceProvider extends MailServiceProvider
{
/**
@roNn23
roNn23 / laravel.js
Last active July 16, 2019 11:41 — forked from JeffreyWay/laravel.js
Updated delete-script of Jeffrey Way to work with Laravel 5. And optimized the implementation for the CSRF token. #laravel
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
Add this to your view:
<script>
window.csrfToken = '<?php echo csrf_token(); ?>';
@staltz
staltz / introrx.md
Last active November 14, 2024 11:27
The introduction to Reactive Programming you've been missing
@jeremeamia
jeremeamia / Twilio_Client.php
Last active May 15, 2018 21:45
The beginnings of a Guzzle-based, PHP Twilio client.
<?php
namespace Twilio;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Collection;
use GuzzleHttp\Command\Guzzle\GuzzleClient;
use GuzzleHttp\Command\Guzzle\Description;
use GuzzleHttp\Command\Model;
use GuzzleHttp\Subscriber\Retry\RetrySubscriber;