Skip to content

Instantly share code, notes, and snippets.

Working from own office

Sinan Eldem sineld

Working from own office
Block or report user

Report or block sineld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sineld / passwordvalidation
Created Dec 30, 2017 — forked from Michael-Brooks/passwordValidation.php
Laravel Password validation Regex (Contain at least one uppercase/lowercase letters and one number)
View passwordvalidation
* Place this with the rest of your rules.
* Doesn't need to be in an array as there are no pipes.
$rules = array(
'password' => 'required|min:6|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/'
* Use this one if you also require at least one symbol.
sineld / Laravel PHP7 LEMP
Created Dec 20, 2017 — forked from santigarcor/Laravel PHP7 LEMP
Laravel 5.x on Ubuntu 14.x, PHP 7.x, Nginx 1.9.x
View Laravel PHP7 LEMP

#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
sineld / Lravel-5-inpalce-edit-using-xeditable.php
Created Dec 8, 2017 — forked from pupadupa/Lravel-5-inpalce-edit-using-xeditable.php
Laravel 5 inplace editing using jquery's x-editable plugin . Inline and bulk editing examples.
View Lravel-5-inpalce-edit-using-xeditable.php
* In this example we create view with inplace and bulk editing.
* Tools and plugins:
* jQuery
* xEditable jquery plugin
* twitter bootstrap
sineld / sayiyiYaziyaCevir.php
Created Sep 26, 2017
sayıyı yazıya çevirme
View sayiyiYaziyaCevir.php
// Kaynak:
$yaziyla = sayiyiYaziyaCevir(123456.67, 2, "TL", "Kr", "#", null, null, null);
echo (sayiyiYaziyaCevir("123456.67", 2, "TL", "Kr", "#", null, null, null));
function sayiyiYaziyaCevir($sayi, $kurusbasamak, $parabirimi, $parakurus, $diyez, $bb1, $bb2, $bb3) {
// kurusbasamak virgülden sonra gösterilecek basamak sayısı
sineld / routes.php
Created Oct 27, 2013
Sefa için filtre örneği
View routes.php
class DogumgunuFilter {
public function filter($route, $request, $tarih) {
if (date('d/m') == $tarih) {
return 'Doğum günün kutlu olsun Sefa';
Route::filter('dogumgunu', 'DogumgunuFilter');
sineld / add-datatables.js
Created Nov 19, 2016 — forked from scottoffen/add-datatables.js
Apply the DataTables jQuery plugin to any table on a website
View add-datatables.js
var options = { class : "wikitable", idx : 0, id : "firstWikiTable" };
var dt_options = { paging: false, scrollY: 400 };
var jscript = document.createElement("script"); jscript.src=""; document.body.appendChild(jscript);
jscript.onload = function ()
var script = document.createElement("script"); script.src=""; document.body.appendChild(script);
script.onload = function ()
var css = document.createElement("link"); css.rel="stylesheet"; css.href=""; document.body.appendChild(css);
css.onload = function ()
View FormHelper.php
* FormHelper
* @package veedeoo HMVC
* @author @Veedeoo and @Geegler
* @copyright 2014
* @version 2.1.0
* @access public
View ajax-validation-with-vue.js
new Vue({
el: '#app',
data: {
formInputs: {},
formErrors: {}
methods: {
submitForm: function(e) {
sineld / 01_Laravel 5 Simple ACL
Created Jun 4, 2016 — forked from amochohan/01_Laravel 5 Simple ACL
Laravel 5 Simple ACL - Protect routes by an account / role type
View 01_Laravel 5 Simple ACL

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.


Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

sineld / redis-server
Last active Jul 5, 2016
redis - this script starts and stops the redis-server daemon (centos 6.5)
View redis-server
# redis - this script starts and stops the redis-server daemon
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/
You can’t perform that action at this time.