Skip to content

Instantly share code, notes, and snippets.

View Ibrahim-Debar's full-sized avatar

ibrahim Ibrahim-Debar

View GitHub Profile
@Ibrahim-Debar
Ibrahim-Debar / README.md
Created May 17, 2019 11:43
Sentinel Logged in Users for Laravel 4 and Laravel 5

Sentinel Logged in Users for Laravel

This is a very basic, but hopefully an efective way to detect both Guest and Registered users on your Laravel application.

The Usage and the Eloquent Model are basically the same on both Laravel 4 and Laravel 5, just the installation differs, since the application structure is different.

Please refer to one of the following links for installation on Laravel 4 or on Laravel 5.

@Ibrahim-Debar
Ibrahim-Debar / remount.sh
Created September 18, 2018 09:26 — forked from ertseyhan/remount.sh
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."