Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Beyazıt Kölemen beyazitkolemen

I may be slow to respond.
Block or report user

Report or block beyazitkolemen

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
View a
allow_anonymous true
password_file /etc/mosquitto/passwd
listener 1883 localhost
listener 8883
listener 8083
protocol websockets
View nodejs - redis
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('')(server);
var port = process.env.PORT || 8080;
var serverName = process.env.NAME || 'Unknown';
var redis = require('redis');
client = redis.createClient();
View slider chunk
<div class="features_items"><!--recommended_items-->
<div id="magazalar" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
@foreach($lastshop->chunk(4) as $lshop)
<div class="item {{ $loop->first ? 'active' : '' }}">
@foreach($lshop as $shop)
<div class="col-sm-3" >
View filterlisting
View uyemid
namespace App\Http\Middleware;
use App;
use App\Model\SistemSirket;
use App\Model\SistemSube;
use Closure;
use Firewall;
use Sentry;
class UyeMid
View laravel translateble form jquery tabbed
<div class="row">
<div class="col-sm-offset-3 col-sm-9 col-xs-12">
<ul class="nav nav-pills bar_tabs" role="tablist">
@foreach(config('translatable.locales') as $count => $langs )
<li role="presentation" @if($count == 0) class="active" @endif style="text-transform: uppercase;" ><a href="#{{$langs}}" aria-controls="{{$langs}}" role="tab" data-toggle="tab">{{$langs}}</a></li>
<div class="clearfix"></div>
View laravel dimsav model example
// Base Model
namespace App\Model;
use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;
class Ads extends Model
View laravel localization route view
<li class="dropdown "><a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ LaravelLocalization::getCurrentLocaleName() }}<i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, '/', [], true) }}">
{{ $properties['native'] }}
View laravel localization route
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'site'],
function () {
Route::get('/', 'Front\SiteController@getIndex')->name('site.index');
Route::get(LaravelLocalization::transRoute('routes.sayfa') . '/{page_slug?}', 'Front\SiteController@getPage')->name('');
Route::get(LaravelLocalization::transRoute('routes.kategori') . '/{cat?}', 'Front\SiteController@getCategories')->name('site.categories');
Route::get(LaravelLocalization::transRoute('routes.urun') . '/{ads_slug?}', 'Front\SiteController@getProductDetail')->name('site.product');
View Laravel Settings Save All Data
public function getLinkSettings()
$settings = Setting::all();
return view('backend.settings.settings', compact('settings'));
public function postSystemSettings(Request $request)
$data = $request->except(['_token', '_method']);
foreach ($data as $key => $value) {
Setting::set($key, $value);
You can’t perform that action at this time.