Skip to content

Instantly share code, notes, and snippets.

View hiyali's full-sized avatar
🌎
Looking for opportunities

Salam Hiyali hiyali

🌎
Looking for opportunities
View GitHub Profile
@hiyali
hiyali / A-lumen-route-resource-example.md
Last active January 1, 2021 02:50
lumen-route-resource

Files

Route

./routes/Resource.php # get model resource
./routes/web.php # include and define resource

Controller

./app/Http/Controllers/RestfulControllerTrait.php # restful trait
./app/Http/Controllers/Controller.php # use restful trait
@hiyali
hiyali / php7-laravel-installation
Last active February 23, 2017 06:25
install php7 and laravel
### install php 7 ###
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y
### install laravel ###
composer global require "laravel/installer"
### install requirements ###
sudo apt install php-gd php-zip phpunit php-mbstring
### new project ###
sudo apt install i3 i3status dmenu i3lock xbacklight feh conky compton rofi
(and i3 gaps?)
i3-gaps # window border
feh # wall paper
rofi # like os X win+l (could open any application)
compton # for conky alpha
conky # manual configuration desktop
i3 # window manager
i3-status # i3 status bar