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
Markmacbook168:build mdunbavan$ npm install gulp-sass --save-dev | |
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade | |
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. | |
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
> node-sass@0.9.6 install /Freelance/projects/valeriewade/build/node_modules/gulp-sass/node_modules/node-sass | |
> node build.js | |
(node:86110) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. | |
CXX(target) Release/obj.target/binding/binding.o |
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 site.production.designcompany.com; | |
root /home/forge/site.production.designcompany.com/public; | |
# enable gzip compression | |
gzip on; | |
gzip_min_length 1100; | |
gzip_buffers 4 32k; | |
gzip_types text/plain application/x-javascript image/svg+xml text/xml text/css; |
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 | |
foreach(Post::all() as $postObject){ | |
$start_time = $postObject['post_create_time']; | |
$end_time = $postObject['post_ended_time']; | |
$postData = | |
array( | |
'post' => 'title', | |
'start_time' => $start_time, | |
'end_time' => $end_time |
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 | |
/** | |
* Show all offers queries by current date | |
* | |
* Get a JSON representation of all the offers. | |
* @Get("/") | |
* @Versions({"v1"}) | |
*/ | |
public function getOffers(Offer $offer) |
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 | |
//include the class you created | |
use App\Navigation | |
public function index(Navigation, $navigation) | |
{ | |
// location var to use in the blade template | |
$nav = Navigation; | |
//compact the nav for use in views which passes it through | |
return view('your.view', compact('nav')); |
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
$path = str_replace("/home/vagrant/projects/scoff/scoff-api/public", "", public_path('images/offers')); | |
Image::make($file->getRealPath()) | |
->resize(600, 600) | |
->save(public_path('images/offers').$filename); | |
$data['image'] = $path.$filename; |
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; | |
use Illuminate\Database\Eloquent\Model; | |
class Offer extends Model | |
{ | |
/** | |
* The database table used by the 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
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Offer extends Model | |
{ | |
/** | |
* The database table used by the 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
folders: | |
- map: /Freelance/scoff-api/scoff-api | |
to: /Freelance/scoff-api/scoff-api | |
sites: | |
- map: scoff_api.local | |
to: /Freelance/scoff-api/scoff-api/public | |
databases: | |
- homestead |
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
[ | |
{ | |
"ID": 4434, | |
"title": "new brand case", | |
"status": "publish", | |
"type": "case-studies", | |
"author": {}, | |
"content": "<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas sed diam eget risus varius blandit sit amet non magna.</p>\n", | |
"parent": null, | |
"link": "http://wmh.dev/case-studies/new-brand-case/", |