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 | |
/** | |
* Flickr Component | |
* | |
* This file will share logic to your controller | |
* | |
* PHP 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
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
.fb-like { | |
width: 50px; | |
height: 30px; | |
overflow: hidden; | |
} | |
div.likewrap span.fb_edge_comment_widget{ | |
display: none !important; | |
} |
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
if($request->get('order')[0]['column']){ | |
$data->orderBy($request->get('columns')[$request->get('order')[0]['column']]['data'], $request->get('order')[0]['dir']); | |
} |
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
# directories | |
/vendor | |
/node_modules | |
/public/storage | |
.vagrant/ | |
# project specific files | |
Homestead.yaml | |
Homestead.json | |
.env |
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
osascript -e 'quit app “Slack”' | |
osascript -e 'quit app “Transmit"' | |
osascript -e 'quit app “Sublime Text”' | |
osascript -e 'quit app “Sequel Pro”' | |
osascript -e 'quit app “Terminal”' | |
vagrant halt all |
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
osascript -e 'quit app “Slack”' | |
osascript -e 'quit app “Transmit"' | |
osascript -e 'quit app “Sublime Text”' | |
osascript -e 'quit app “Sequel Pro”' | |
osascript -e 'quit app “Terminal”' | |
vagrant halt all |
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
# my subdirectory was /blog | |
# change 'blog' to reference your project sub directory | |
location /blog { | |
try_files $uri $uri/ /blog/index.php?$query_string; | |
} |
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 Theming | |
# http://getbootstrap.com/docs/4.0/getting-started/theming/ | |
# FILE: resources/assets/js/bootstrap.js | |
try { | |
window.$ = window.jQuery = require('../../../node_modules/jquery/dist/jquery'); | |
window.Popper = require('../../../node_modules/popper.js/dist/popper'); | |
require('../../../node_modules/bootstrap/dist/js/bootstrap'); |
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
/** | |
* Store a newly created resource in storage. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function store(Request $request) | |
{ | |
$post = new BlogPost($request->all()); | |
$post->generateSlug(); // generate a url friendly slug of the article |
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
/** | |
* BlogPost creating event | |
* | |
* @param \App\BlogPost $blogPost | |
*/ | |
public function creating(BlogPost $blogPost) | |
{ | |
$blogPost->generateSlug(); | |
} |
OlderNewer