Eloquent Accessors - All "get's" getFirstNameAttribute( $value ) ...
Eloquent Mutators - All " set's " setFirstNameAttribute( $value ) ....
Declare in your model files
| .visible-android { | |
| display:none; | |
| } | |
| .visible-ios { | |
| display:none; | |
| } | |
| .on-device .visible-android, .on-device .visible-ios { | |
| display:inherit; | |
| } | |
| .device-ios .visible-android { |
| sudo apt-get update | |
| sudo apt-get install g++ curl libssl-dev apache2-utils | |
| sudo apt-get install git-core | |
| git clone git://github.com/ry/node.git | |
| cd node | |
| ./configure | |
| make | |
| sudo make install | |
| clear | |
| node -v |
| # Name: 0_luna_dev.sh | |
| # Description: Automated setup of dev tools for elementary OS | |
| # Author: Shankar <psgganesh@gmail.com> | |
| # Twitter handle: @psgganesh | |
| # USAGE | |
| # CURL or WGET the RAW URL of this file and run below two commands | |
| # 1. chmod +x lumen.sh | |
| # 2. sudo bash ./lumen.sh | |
| # Check your browser with the IP address of the host machine and viola, you have lumen installed |
| # Grub 2 | |
| sudo sed -i '$ a\deb http://download.opensuse.org/repositories/home:ksmanis/xUbuntu_12.04/ /' /etc/apt/sources.list | |
| wget -q http://download.opensuse.org/repositories/home:ksmanis/xUbuntu_12.04/Release.key -O- | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get install kcm-grub2 |
| sudo apt-get update | |
| sudo apt-get install update-manager-core | |
| lsb_release -a | |
| sudo do-release-upgrade --check-dist-upgrade-only --devel-release | |
| sudo do-release-upgrade --devel-release |
| server { | |
| server_name <domain name>; | |
| listen 80; | |
| root /var/www/social/public_html; | |
| access_log /home/mautic/site/logs/access.log; | |
| error_log /home/mautic/site/logs/error.log; | |
| index index.php; |
| #Fix locale issue | |
| http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue | |
| sudo locale-gen en_US.UTF-8 | |
| # UFW rules to be enabled and added | |
| https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands | |
| # Maria DB | |
| http://idroot.net/linux/install-mariadb-ubuntu-16-04/ |
| Login to console using digital ocean's browser based shell, login using root and the new password generated, | |
| and carry on with below steps | |
| sudo nano /etc/ssh/sshd_config | |
| Change | |
| UsePAM yes | |
| IgnoreUserKnownHosts no |
| Complete tutorial | |
| https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-haproxy-setup-with-corosync-pacemaker-and-floating-ips-on-ubuntu-14-04 | |
| Below is the main trouble-shooting steps missed on the above post. | |
| As per: Pathfinder - https://www.digitalocean.com/community/users/pathfinder - Run below also. | |
| sudo apt-get install python-pip | |
| sudo pip install requests |