This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::group( | |
[ | |
'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('site.page'); | |
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Base Model | |
<?php | |
namespace App\Model; | |
use Dimsav\Translatable\Translatable; | |
use Illuminate\Database\Eloquent\Model; | |
class Ads extends Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
@endforeach | |
</ul> | |
</div> | |
<div class="clearfix"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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) | |
<li> | |
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, '/', [], true) }}"> | |
{{ $properties['native'] }} | |
</a> | |
</li> | |
@endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use App; | |
use App\Model\SistemSirket; | |
use App\Model\SistemSube; | |
use Closure; | |
use Firewall; | |
use Sentry; | |
class UyeMid | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Olasılıklar: | |
site.com/country/state/tag | |
site.com/country/tag | |
site.com/country/type | |
site.com/country/state/type | |
site.com/country/state/tag | |
site.com/country/state/type/tag | |
##Route |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" > | |
@include('front.layout.store') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
var server = require('http').createServer(app); | |
var io = require('socket.io')(server); | |
var port = process.env.PORT || 8080; | |
var serverName = process.env.NAME || 'Unknown'; | |
var redis = require('redis'); | |
client = redis.createClient(); | |
server.listen(8080); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow_anonymous true | |
password_file /etc/mosquitto/passwd | |
listener 1883 localhost | |
listener 8883 | |
listener 8083 | |
protocol websockets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"indent_with_space": 4, | |
"passes": | |
[ | |
"PSR2MultilineFunctionParams", | |
"AllmanStyleBraces" | |
], | |
"psr1": true, | |
"psr2": true, | |
"version": 1 |