Skip to content

Instantly share code, notes, and snippets.

View unikapps's full-sized avatar

Rachid ESSAKHI unikapps

View GitHub Profile
git push -o merge_request.create -o merge_request.merge_when_pipeline_succeeds -o merge_request.target_branch=staging
La fonction pluck() retourne un tableau associatif par exemple: $eleves->pluck('nom', 'premon','id')
va retourner un tableau dont le prenom comme cle et nom comme valeur, donc sans prendre en compte le champ id
C'est mieux d'utiliser select dans ce cas:
DB::table('eleves')
->where('class_id', request('class_id'))
->select('nom', 'prenom', 'id')
->get()
@unikapps
unikapps / selenium-php-webdriver-cheatsheet.md
Created February 10, 2018 21:34 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);

@unikapps
unikapps / Makefile
Last active December 8, 2017 23:35
Makefile to easily work with Laradock
.PHONY: up start stop down ws redis
DOCKER_COMPOSER_CONTAINERS = nginx mysql redis php-worker
up:
cd laradock && \
docker-compose up -d ${DOCKER_COMPOSER_CONTAINERS}
start:
cd laradock && \