bookmark_borderPHPUnit – Seeding inside your test methods

If you want to run seeders before each test you can use the artisan command in each of your test methods.

Running all seeders with:

$this->artisan('db:seed');

Running only one specific seeder:

$this->artisan('db:seed', ['--class' => 'RolesTableSeeder']);

bookmark_borderMy VIM configuation

Hey guys, just wanted to share my current VIM settings.


vim configuration

Installation

Copy the vimrc file to ~/.vimrc
Install Vundle from https://github.com/VundleVim/Vundle.vim with:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Run vim +PluginInstall +qall

Enjoy 😉
https://github.com/dansku/vimrc

bookmark_borderWacken 2018 Band Parser

Today I decided to write a quick script to parse the bands who are confirmed for the Wacken Open Air 2018 festival. I am still not sure if I will do much else with it, but thinking it could be interesting to improve the code to send an email every time a new band is added, what do you think?

The repo for the project -> https://github.com/dansku/wacken_parser

The response is a JSON file like:

[  
  {  
    "bandAddedOn":"06.08.2017",
    "bandUrl":"http://www.wacken.com/en/...",
    "bandName":"Amorphis",
    "bandImage":"http://www.wacken.com/....png"
  }
]