This file contains hidden or 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
/* ========================================================= | |
* bootstrap-treeview.js v1.2.0 | |
* ========================================================= | |
* Copyright 2013 Jonathan Miles | |
* Project URL : http://www.jondmiles.com/bootstrap-treeview | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
This file contains hidden or 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\Providers; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** | |
* This namespace is applied to your controller routes. | |
* | |
* In addition, it is set as the URL generator's root namespace. |
This file contains hidden or 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\Requests\Admin; | |
use Illuminate\Foundation\Http\FormRequest; | |
use App\Acme\Helpers\RequestHelper; | |
class EducationCreate extends FormRequest | |
{ | |
use RequestHelper; |
This file contains hidden or 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\Providers; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
use App\Page; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains hidden or 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\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class Page extends Model | |
{ | |
protected $table = "pages"; | |
protected $fillable = ["title",'slug','content','description','status','publish_at']; |
This file contains hidden or 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
/** | |
* Tinymce vs editörlerden blade taglarını render etmemize yarıyor. | |
* @param $value | |
* @return mixed | |
*/ | |
function compile_echos($value) | |
{ | |
$pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', "{{", "}}"); | |
$callback = function ($matches) { |
This file contains hidden or 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
nestable: function (child, string = 0) { | |
var nested = []; | |
child.forEach(e => { | |
e["push"] = ' '.repeat(string) | |
this.parents.push(e); | |
if (e.child !== null) { | |
nested += this.nestable(e.child, string + 2); | |
} | |
}); | |
}, |
This file contains hidden or 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
@section('form') | |
<form class="ui form" action="{!! route(config('dencol.auth.routes.reminder.post.args.as')) !!}" | |
method="post" autocomplete="off" novalidate onsubmit="return false;" id="reminderForm"> | |
<div class="ui segment" style="text-align: left;"> | |
<div class="field"> | |
<div class="ui left icon input"> | |
<i class="user icon"></i> | |
<input type="text" name="email" placeholder="E-posta adresin" value="{!! old('email') !!}"> | |
</div> | |
</div> |
This file contains hidden or 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
const DATA = $(formId).serialize(); | |
const URL = $(formId).attr('action'); | |
$.ajax({ | |
url: URL, | |
data: DATA, | |
success: function (e) { | |
alertify.success('Tamamdır :)') | |
}, | |
error: function (e) { | |
const data = e.responseJSON; |