Alfred Nutile
    • Posts
    • SwiftUI: Switching to a page when a user clicks on notification
    • Odd Livewire Error(s)
    • Get Fixture Put Fixture Helpers for Laravel
    • CI - GitHub Actions and Laravel (Part 1 of 3)
    • Laravel Sail and M1 Mac
    • Links and Notes About DevOps Transformation Using the Accelerate Data and Strategies
    • Mocking, Python, Pytest
    • Windows Dev Box Try 3 2020
    • Using Python Lambda behind and ALB
    • Suggestions Around Building a Good Development Team in Parallel to Building a Good Product
    • Lambda Tips
    • Mocking in Python
    • PHP Xdebug Visual Code
    • Cognito and OAuth
    • PHPUnit CodeCoverage
    • Deploying Fargate
    • How to Troubleshoot and Issue
    • Bitbucket Pipeline
    • JSONEditor, Vue and Vuex
    • Laravel Filter Scope on a Model
    • Query Strings, Vue and Bootstrap Active Tab
    • Valet Laravel 7.1 and 7.2
    • Python3 Fixtures
    • PHPStan Setup
    • Vuex External File
    • Simple API_Token Auth for VueJS Components and Laravel
    • Dusk Screenshots to S3 of Failing tests
    • Windows Dev Box Try 2 2018
    • Laravel Queue Restart and 'Why are my changes not showing up'
    • Lambda and Github Webhooks
    • Query Strings and VueJS
    • Debugging AWS SAM
    • wip Fargate and Laravel
    • Getting Started with Orchestra Testbench for Laravel Package Development
    • GroupBy not Sorting by latest
    • BrowserSync and Laravel
    • Troubleshoot Laravel Socialite and Github login
    • Wrapping Libraries in Services JS
    • Passing from Blade to VueJs
    • Laravel and AWS Rekognition
    • Docker Laravel and Cron
    • Pusher and Laravel Updates
    • Dusk and Production (with Dusk disabled)
    • Testing Laravel API, Spark with Authentication
    • Example of Making Documentation in Markdown with PDF Output
    • Serverless Python and Example App WIP
    • VueJS Transition Helper
    • Laravel Asset Notes WIP
    • PostMark SMTP for sending Notifications and Password Resets
    • Dusk Notes
    • Continuous Delivery in a NutShell
    • Laravel Shift and Your Day Job
    • Wrapping JSONEditor in Vue as Well as Laravel Blade
    • Laravel, Dusk and Valet
    • WIP AWS Batch and Workers with Laravel
    • Mocking Models OutSide of Laravel
    • Versions and Branching a Library
    • Serverless and Custom Tags for Resources
    • Setting Up My Mac
    • Serverless, AWS API Gateway and Authentication
    • IronFunctions and PHP
    • Testing a trait with PHPUnit
    • Machine to Machine Laravel Passport
    • Meetings and Cross TimeZone Teams
    • Dusk and Homestead
    • Simple Slack Trait Get Request and return Response
    • We Code in the Context of our Quoting
    • Instantiate Request for Testing
    • Load Testing With Behat
    • Example Job Format for Queue
    • LarScanner simple foundation for building a good Laravel Security Scanner
    • Super Simple Sending Messages to Slack from Laravel
    • Pusher and PHP 'Error Failed to connect to Pusher'
    • Model Boot Events
    • Queue onConnection
    • Guzzle 5 or 6 or ????
    • Chrome update equals Behat Fail
    • Laravel and Casting 'JSON_UNESCAPED_UNICODE' Data
    • Laravel 5.x Cookbook Chat Area
    • Throttle Password Reset
    • Laravel Throttle Feature using IP address as Key
    • Troubleshooting a Failed Build with Codeship and SauceLabs
    • Amazon Machine Learning
    • Mockery Behat and Laravel
    • Adding Basic Auth to Forge
    • Uploading Images in Behat both at Domain Level and UI Level
    • Behat Laravel Domain Testing Inside Out
    • Keeping a Controller Method Simple
    • Example of Mixing it up Behat BDD and PHPUnit
    • Homestead and Auto Setup Hosts File
    • API Token Based Access Laravel 5.1 (Yet another article on this)
    • Contract Testing
    • Getting Going Quickly Windows, Behat and Selenium
    • AWS, S3 Storage and limited Visibility
    • Behat and Uploading Files to a Form Even on Remote Selenium2 Servers
    • Laravel, PHPUnit, Require_Once on Routes
    • Remote Behat Testing with Laravel
    • CMS or NOT CMS
    • Feature Flags In Laravel
    • Install Webdriver to get testing with Behat and Javascript
    • Slack Custom Commands and Laravel to Make an American to British Translater
    • Then Benefits of Building a Clickable POC as a Developer
    • Put It All Into Version Control Even Composer!
    • Why Side Projects are Good For Me
    • Do I Really Need This Route Anymore?
    • Logout User After Inactivity Laravel and Milddleware
    • CentOS or RedHat and Laravel
    • Quick Tip Forcing More Complex Passwords in Laravel
    • Image Uploads, Laravel, Angular and Flow.js
    • Simple Example of Making Code Easier to Read
    • Spark Setup Issue
    • Adding Expose IDS to Laravel MiddleWare
    • Note To Self: A VirtualBox machine with the name 'homestead' already exists.
    • Laravel and Angular Widgets e.g. Non SPA (Single Page Application) Pattern
    • Laravel 5.1 and Oauth
    • Talking to the Methods Not the Properties
    • Using your project docs inside the application
    • Behat for Product Owners
    • HasMany Through a Many to Many
    • Adding RSS to Your Site
    • Bower and Elixir
    • Quick way to Request Json from Angular and return from Laravel
    • Laravel 5.1 Behat and Codeship
    • Conventions to Help Minimize your ENV File
    • Start to end Billing using Stripe, Cashier and Laravel 5.1
    • Codeship and Laravel for Continuous Integration
    • Logging in Iron.io Workers
    • Writing Commands and Scheduling in Laravel 5.1
    • Easily Create Fixture Data from Remote Services and Refresh Mock Data
    • Adding Cache to your Laravel Site
    • Iron.io and Lumen
    • Quick way to mock data for Behat in Laravel
    • Code for making a Shortcut tool for your App
    • Using Faker and ENV vars with Behat
    • Using a BurnDown Chart to Pace Yourself
    • Behat and PhantomJs
    • PHP Error: Maximum function nesting level of '100' reached, aborting Behat
    • Iron.io Laravel and Workers, Microservices
    • Multi Domain Nginx Redirect
    • Sending Dates to Angular from Laravel
    • Dealing with Oauth2 Server and Laravel for both a local app login and for remote apps using Lucadegasperi/oauth2-server-laravel
    • Simple Look at Laravel Events
    • Laravel-Flysystem and Creating Time Limited Public Urls on S3
    • Laravel Behat and Selenium
    • Linux, Behat and installing ChromeDriver
    • Sqlite and Laravel
    • Timing PHPUnit Tests
    • Reusable UI/API CRUD Laravel and Angular
    • Laravel Blade and Angular brackets
    • Angular History Based BreadCrumbs
    • Embed Template Data in View (Angular, Laravel)
    • Quick fixture data and mocking external APIs
    • Mocking Queue Service for faster Behat Testing
    • Redirecting back to original Angular.js destination from Laravel Auth
    • Docker, MailCatcher and Laravel
    • PHP quick fixture data for phpunit testing
    • Nginx force SSL
    • Moving Forge Deploy Script to Envoy
    • Laravel and Angular Time/Date Display
    • Laravel 4.2 and Dotenv to set environment
    • Speeding up PHPunit tests and Behat in Laravel for Database refreshes
    • Angular Pusher Factory to Centralize Code (also using Laravel to set constants and properties)
    • CSRF Tokens and Angular.js
    • Temporary Auth Updates L5
    • Chrome and Behat
    • Design Guide - Controllers, Services and IOC
    • Multi Threaded Queue Processing
    • Team Style Guides and Mind Set
    • Sorting related models in Laravel
    • Behat for testing RESTful APIs
    • Boris REPL and you Applicatoin (Silex in this case)
    • SSL and Homestead
    • Drush and Homestead Vagrant Box
    • Polymorphic relationship Laravel
    • Quick way to traverse a nested php arrray
    • Using VCR for PHP API Testing
    • Saucelabs PHP Client
    • Many to Many Polymorphic Relations from Laravel to Angular and back
    • Laravel Sentry and UUID
    • Laravel Homestead and MailCatcher
    • Laravel Homestead and Beanstalkd Console
    • Restangular and nested responses
    • Behat Test more than number of elements
    • When you have to use Angular inside of Drupal
    • Transforming Output from the Database to the View/REST layer
    • Showing nested relationships details
    • Simple Laravel CMS Example
    • Quick Gulp file to run php-unit tests
    • Laravel and non email authentication
    • Using Beanstalkd to Schedule the release of a post in Laravel
    • Behat Seed Repo
    • Using Dot Env files to manage settings
    • Using Scopes in Laravel
    • Quick way to add text to a hidden ckeditor field
    • Github CLI to get Teams and Members of an Org
    • Mink Assertions
    • Drupal and Composer install or update
    • Adding Column using sqlite caused error 'Cannot add a NOT NULL column with default value NULL'
    • php artisan migrate:reset not working
    • Angular and Scope - or - How not to waste time figuring out why a scope value is not 'working'
    • Behat Checkbox
    • Adding Markdown Editor to your Blog/CMS
    • Running multiple tasks asynchronously with Drush, Drupal and MT
    • Building the UI first with Angular, Mocked Data and REST
    • Behat Vagrant install and local testing
    • GitWrapper Per Page settings KnpLabs / php-github-api
    • Angular and Laravel Partials
    • Using Github Pages for your help docs
    • Twig and Drupal 7
    • Drupal Services and Instantiating a Class
    • Guard, Laravel and phpunit
    • Angular.js, CKEditor, and REST including file uploads
    • Saucelabs Timeout
    • Angular Drupal and CSRF
    • Ng-if and Scope
    • Mocking drupal database queries
    • Ubuntu 12.04 and PHP 5.4
    • Laravel Project Management Site
    • Angular Watching a model and it's filters
    • Behat Resources
    • Nesting Laravel 4 Routes
    • Exploring Code and Laravel
    • Node.js error
    • Behat and bad HTML
    • Behat Mink and using Javascript / jQuery to test attributes
    • Keep it (functions/methods) small and simple
    • PHPSH
    • Behat and Drupal episode 1
    • Quick Script to update Heroku database
    • Bash History
    • Drupal FAPI Validation Error
    • Heroku in Heroku
    • Drush and Features-Export
    • Hosting is Dead?
    • HerokuApps and Multiple Domains
    • Global Redirect module after spaces / purl install does not
    • Ruby on Rails with CMS and other fun stuff
    • Paperclip and S3 and Ckeditor
    • RubyMine and BetterErrors
    • Installing mysql2 on a mac
    • NDA
    • Capistrano for non-rails sites
    • Angular Seed Testing Setup
    • Angular.js Ticket System
    • Paperclip and S3
    • Technologies for a Saas
    • My first Rails site for the masses.
    • Refinery CMS and Twitter Bootstrap
    • Vagrant and Laravel
    • Questions that may come in handy when interviewing
    • Hack For Change Challenge
    • Bootstrap Generator Gem Ruby on Rails
    • Using headless tests with Mink and Behat
    • ActiveAdmin Rails
    • Making lists from acts_as_taggable
    • Javascript Based Product Viewer
    • jQuery Address
    • CORS and Laravel
    • Great tip on Git and Jenkins to auto deploy
    • Going Angular.js
    • DrupalCamp Western Mass
    • Introduction
    Pusher and Laravel Updates

    Getting error “Did you forget to specify the cluster when creating the Pusher instance” Then need to set config/broadcasting.php: 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_KEY'), 'secret' => env('PUSHER_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ // ], ], to 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_KEY'), 'secret' => env('PUSHER_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ "cluster" => 'us2', "encrypted" => true ], ], And if still calling pusher manually in your js update to be:

    February 14, 2018 Read
    Dusk and Production (with Dusk disabled)

    In DatabaseServiceProvider.php line 78: Class 'Faker\Factory' not found I had a ton if issues getting dusk on production, especially since production would run composer install --no-dev --prefer-dist --no-interaction To get around this issue I had to do a few things One, if you are stuck and can not even run php artisan on the server: rm bootstrap/cache/services.php rm bootstrap/cache/packages.php Two, turn off auto discovery for Dusk and just add it to the app/Providers/AppServiceProvider.

    February 5, 2018 Read
    Testing Laravel API, Spark with Authentication

    Just a reminder to self, if I want to test an API I made and need to pass and api_token <?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; use App\Quote; use Laravel\Spark\Repositories\TokenRepository; class QuoteControllerTest extends TestCase { use RefreshDatabase; public function testGettingAQuoteUsingToken() { $user = factory(\App\User::class)->create(); $team = factory(\App\Team::class)->create(); $team->users()->attach($user->id, ['role' => "member"]); $quote = factory(\App\Quote::class)->create([ 'team_id' => $team->id, 'posted_by' => $user->id ]); $token = new TokenRepository(); $token = $token->createToken( $user, 'get_quote', [] )->token; $this->json('GET', "/api/teams/{$team->id}/quotes/random?

    February 4, 2018 Read
    Example of Making Documentation in Markdown with PDF Output

    Many of the sites I make have a need for a Support page for staff to know how to do things like add content, manage users etc. This article will cover how I go about writing my help docs in Markdown and then displaying it on the website with an option to print as PDF. Writing MarkDown To begin with, I made the help doc in mine. I made a sample one here

    January 5, 2018 Read
    Laravel Asset Notes WIP

    This is just a reminder area of all the minor details as I find them that I need to remember FontAwesome yarn add font-awesome Then in my resources/assets/sass/app.scss // Fonts @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); // Variables @import "variables"; // Bootstrap @import "~bootstrap-sass/assets/stylesheets/bootstrap"; @import "~font-awesome/css/font-awesome"; My webpack is the default mix.js('resources/assets/js/app.js', 'public/js') .sass('resources/assets/sass/app.scss', 'public/css'); set to go! If using Less #resources/assets/less/app.less @import "./../../../node_modules/font-awesome/less/font-awesome";

    December 16, 2017 Read
    PostMark SMTP for sending Notifications and Password Resets

    I have been using PostMark for years https://postmarkapp.com for sending emails, e.g. password reset and more. They have an API but to get going with SMTP all the info is here Basically get your KEY and use it in your .env like this: MAIL_DRIVER=smtp MAIL_HOST=smtp.postmarkapp.com MAIL_PORT=587 MAIL_USERNAME=foo MAIL_PASSWORD=foo MAIL_ENCRYPTION=tls And all should work. Just make sure to Register the domain in their domain ui Set the from info in Laravel

    December 14, 2017 Read
    Dusk Notes

    Just keeping a list of gotchas around dusk. use RefreshDatabase not working Cost: 1 hour lost Basically I had to go back to the slower “use DatabaseMigrations;” otherwise it would not work. The user was null. Links: This thread helped Headless or not Cost: 1 hour lost or less For some odd reasons my tests started coming up blank. I turned off headless in this class DuskTestCase protected function driver() { $args = [ '--disable-gpu', '--headless' ]; if (env("HEADLESS_OFF")) { $args = [ '--disable-gpu' ]; } $options = (new ChromeOptions)->addArguments($args); return RemoteWebDriver::create( 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability( ChromeOptions::CAPABILITY, $options ) ); } And this way it still works on travis.

    December 10, 2017 Read
    Laravel Shift and Your Day Job

    ** UPDATED November 22 2017 ** The service Laravel Shift is a great way to save a ton of time and keep your Laravel application up to date. But sometimes you may not be allowed to share access to your company Github account for this process since it is hard to limit access at the repo level. In this case I have a quick way to get your work done and back into the company repo IF that is okay with your boss.

    November 3, 2017 Read
    Wrapping JSONEditor in Vue as Well as Laravel Blade

    UPDATED November 05 2017 This will cover how to make a JSONEditor component that I can then use in a Blade template and listen to events. You will end up with this: First making sure I have all the packages I need: //package.json "devDependencies": { "axios": "^0.17", "bootstrap-sass": "^3.3.7", "cross-env": "^5.0.1", "jquery": "^3.2", "laravel-mix": "^1.0", "lodash": "^4.17.4", "vue": "^2.1.10" }, "dependencies": { "select2": "^4.0.5", "jsoneditor": "^5.9.6" } And to load it into my bootstrap file:

    November 1, 2017 Read
    Laravel, Dusk and Valet

    By default I set my phpunit.xml to use test as my database: <php> <env name="APP_ENV" value="testing"/> <env name="CACHE_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/> <env name="MAIL_DRIVER" value="log"/> <env name="QUEUE_DRIVER" value="sync"/> <env name="DB_DATABASE" value="test"/> <-- this line here </php> But with Valet and Dusk this led to the browser using my default database and not test but the PHPUnit test itself was using test so the user I created and logged in as was not available in the browser.

    September 28, 2017 Read
    WIP AWS Batch and Workers with Laravel

    Sending Docker Commands to Get A Task Done This article will show how to get started with AWS Batch and Docker to spin up a “worker” By the time you are done reading it you will: Have a Docker image to run your command in. Deploy the Docker image to AWS ECR And Run a Task on the AWS Batch system, or a 100 tasks, does not matter. Finally you will have the scripts needed to fully build AWS Batch with CloudFormation, e.

    September 6, 2017 Read
    Mocking Models OutSide of Laravel

    This all comes down to me using https://github.com/orchestral/testbench With this in place I can work on an external library as if it is in Laravel. The one place I ran into trouble on though was mocking model related methods like all for example a model Foo being called as \App\Foo::all() was hard to mock cause all is stacic: //\Illuminate\Database\Eloquent\Model::all public static function all($columns = ['*']) { return (new static)->newQuery()->get( is_array($columns) ?

    August 24, 2017 Read
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    •  … 
    • 12
    • »
    • »»
    ${Title}

    ${Summary}

    December 25, 2021 Read
    Navigation
    • About
    • Projects
    • Recent Posts
    • Achievements
    Contact me:
    • Email: me@alfrednutile.info
    • Phone: +1.413.230.4767

    Toha
    ICONS8
    Powered by Hugo Logo