Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| # Added to the bottom of my file | |
| PROXY_OAUTH_CLIENT_ID=2 | |
| PROXY_OAUTH_CLIENT_SECRET=SECRET-GENERATED-KEY-HERE | |
| PROXY_OAUTH_GRANT_TYPE=password |
| <?php | |
| namespace App\Listeners; | |
| use App\Media; | |
| use FFMpeg\FFMpeg; | |
| use FFMpeg\Format\Video\X264; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Queue\SerializesModels; |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
| // in app/filters.php: | |
| App::after(function($request, $response) | |
| { | |
| $response->headers->set('Access-Control-Allow-Origin', '*'); | |
| $response->headers->set('Access-Control-Allow-Headers','GET, POST, OPTIONS, PUT, DELETE, X-Requested-With, Content-Type, Authorization'); | |
| $response->headers->set('Access-Control-Allow-Methods','GET, POST, OPTIONS, PUT, DELETE'); | |
| return $response; | |
| }); |
| <?php | |
| // ... | |
| public function testProtected() | |
| { | |
| $dateFormatter = new DateFormatter; | |
| $class = new \ReflectionClass('DateFormatter'); |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
This is just a random list of notes, as I dig into Laravel 4. If you have any feedback/solutions, please leave a comment. I'll be compiling everything for an article on Nettuts+, when the framework is officially in Beta. This will be updated over the course of the week.
Running composer dump-autoload after every new controller is a pain. Can this not be automated through artisan controller:make ControllerName?
Seems that some of the View HTML helpers are missing. No HTML::script().
Route::resource('tasks', 'TasksController') doesn't seem to create named routes. This is a big deal, if not. What's the solution?
| #!/bin/bash | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
| # -*- coding: utf-8 -*- | |
| """ | |
| Flaskr | |
| ~~~~~~ | |
| A microblog example application written as Flask tutorial with | |
| Flask and couchdbkit. | |
| :copyright: (c) 2010 by Armin Ronacher. | |
| :license: BSD, see LICENSE for more details. |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.