Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
<?php namespace App\Contracts\Repositories\Segregated; | |
use Illuminate\Database\Eloquent\Model; | |
interface Common | |
{ | |
/** | |
* @param bool $paginate | |
* @param \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder $query |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
This gist assumes:
#Launch an instance http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
#Setup EC2
chmod 400 key.pem
ssh -i key.pem ec2-user@YOUR_SERVER_IP
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
Add this to your view: | |
<script> | |
window.csrfToken = '<?php echo csrf_token(); ?>'; |
<?php | |
namespace Acme\PeopleSoftBundle\Listener; | |
use Doctrine\DBAL\Event\ConnectionEventArgs; | |
use Doctrine\DBAL\Events; | |
use Doctrine\Common\EventSubscriber; | |
/** | |
* Changes Doctrine's default Oracle-specific column type mapping to Doctrine |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)
<?php | |
//file: /.env.local.php | |
// return the configuration for the 'local' environment | |
return array( | |
'db_host' => '127.0.0.1', | |
'db_name' => 'DB_NAME', // specify database name | |
'db_user' => 'DB_USER', // specify database username | |
'db_pass' => 'DB_PASS', // specify database password | |
); |
<?php namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Routing\Middleware; | |
use Illuminate\Http\Response; | |
class CORS implements Middleware { | |
/** | |
* Handle an incoming request. |