Put SearchTrait.php
in app
directory. Then use SearchTrait in your model, like so
use App\SearchTrait;
use Illuminate\Database\Eloquent\Model;
class Article extends Model {
server { | |
# substitute your web server's URL for www.example.com | |
server_name example.com www.example.com; | |
root /var/www/example.com/html; | |
index index.php; | |
client_max_body_size 100M; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; |
cat <<EOF >> /etc/apt/sources.list | |
deb http://archive.ubuntu.com/ubuntu precise main restricted universe | |
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | |
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
EOF | |
apt-get update | |
apt-get purge \ | |
apache2 \ |
<?php | |
/* "Copyright 2012 a3 Revolution Web Design" This software is distributed under the terms of GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 */ | |
// File Security Check | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
?> | |
<?php | |
/*----------------------------------------------------------------------------------- | |
A3rev Plugin Admin UI | |
TABLE OF CONTENTS |
I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<style> |
Dear Boss, | |
You know why i want to resign? | |
Since i worked for you, i have no time to blog anymore.When i don't have time to blog anymore, my readers hate me. When my readers hate me, they don't visit my blog anymore, my hits drop. When my hits dorp, i become unhappy. When i become unhappy, i will eat a lot. When i eat a lot, i will get fat. When i get fat, it will affect your company's image. When your company's image is affected, your business no good. When your business no good, you become unhappy. When you become unhappy, you eat a lot, like me. When you eat a lot, i'm afraid you will become fat, like me. | |
You see, Boss, it's a vicious cycle. I did everything for your own good, because i care for you, Boss. | |
So the conclusion is, i want to resign. Please let me go la. | |
<?php namespace Smile\Services\Creators; | |
use Illuminate\Validation\Factory as Validator; | |
abstract class Creator implements CreatorInterface | |
{ | |
protected $model; | |
protected $errors; |
//Set up Git on your machine if you haven't already.
mkdir /path/to/your/project cd /path/to/your/project git init git remote add origin ssh://git@bitbucket.org/a9un9hari/l.git
//You already have a Git repository on your computer. Let's push it up. cd /path/to/my/repo git remote add origin ssh://git@bitbucket.org/a9un9hari/l.git
ndek Procfile : | |
web: node index.js --production | |
trus dek console : | |
heroku config:add NODE_ENV=production | |
git push origin master |