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
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" > |
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
public function setTitleAttribute($title) | |
{ | |
$this->attributes['title'] = $title; | |
$this->attributes['slug'] = Str::slug($title); | |
} |
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
App::before(function($request) | |
{ | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); | |
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With'); | |
header('Access-Control-Allow-Credentials: true'); | |
}); |
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
$('body').on('hidden.bs.modal', '.modal', function () { | |
$(this).removeData('bs.modal'); | |
}); |
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\Services\Mailers; | |
abstract class Mailer { | |
public function sendTo($user, $subject, $view, $data = []) | |
{ | |
Mail::queue($view, $data, function($message) use ($user, $subject) | |
{ | |
$message->to($user->email)->subject($subject); | |
}); |
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\Presenters; | |
trait PresentableTrait { | |
protected $presenterInstance; | |
public function present() | |
{ | |
if (! $this->presenter) | |
{ |
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
$(document).ready(function(){ | |
$('*[data-confirm]').on('click', function(e) { | |
var conf = confirm($(this).data('confirm')); | |
if(! conf) e.preventDefault(); | |
}); | |
$('body').on('hidden.bs.modal', '.modal', function () { | |
$(this).removeData('bs.modal'); | |
}); |
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
location @wp { | |
rewrite ^/blog(.*) /blog/index.php?q=$1; | |
} | |
location ^~ /blog { | |
root /home/vagrant/Code/site; | |
index index.php index.html index.htm; | |
try_files $uri $uri/ @wp; | |
location ~ \.php$ { |
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
@if(session()->has('success_message')) | |
<div class="alert alert-success alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
<h4><i class="icon fa fa-check"></i> Excelente!</h4> | |
{{ session()->get('success_message') }} | |
</div> | |
@endif | |
@if(session()->has('info_message')) | |
<div class="alert alert-info alert-dismissable"> |
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
server { | |
listen 80; | |
server_name domain-name.com; | |
root /home/forge/domain-name.com/public; | |
ssl_protocols TLSv1.2; | |
index index.html index.htm index.php; | |
charset utf-8; |
OlderNewer