akuzemchak / laracon-todo-api Goto Github PK
View Code? Open in Web Editor NEWDemo API built on Laravel 4 for my Laracon 2013 presentation
Demo API built on Laravel 4 for my Laracon 2013 presentation
Hi Aaron,
great talk at Laracon. Than you for that. I've tried you api and i've always got back a 500 error when getting the /v1/lists.
The problem is caused, because the api.limit depends on APC and i did not have it installed and i did not fine anything in the Readme.
Not sure if you would like it to add it to the readme so others don't have to send time finding the problem.
cheers
Patrik
Not really an issue with your demo api, but when I send a PUT request to the api then there are no input vars from the request (Input::all() or Input::get() is empty). Do you know if this is a Postman bug? When I run a curl command from the command line then I do get input vars.
I'm running OSX and tested locally with a clean L4 setup.
Cheers,
Rolf
hi, just watched your youtube laracon webinar, wanted to set this up - kick it some.
how can i create a user/api key?
thanks!
Hey man, awesome presentation at LaraCon (I was not there, but I saw the video).
So, I was wondering, how can I specify to use your errors.php file only when it's an API call? Otherwise it would display the default error pages.
Thanks !
Hi,
I've migrated over into L4 dev (yesterday's git clone) majority of your nice code. Made some alterations to migrations, seeds and routes names. All is working fine with the exception of 'php artisan cache:clear' command.
To double-check have pulled and installed your code but am also getting the following error when run 'php artisan cache:clear':
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Error: Call to undefined function Illuminate\Cache\apc_clear_cache() in /Users/username/Git/test/vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php line 71","file":"/Users/username/Git/test/vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php","line":71}}
I'm running my code on latest OS X, MAMP 2.1.1 on PHP 5.4.4 as system's default in env PATH as well as APC caching enabled through its ACP.
Could you please check if you are getting the same behaviour to confirm it's a MAMP on Mac OSX problem? I could try but would have to install Mcrypt on native PHP 5.3.15 wich is a bit of a pain (Xcode, macports and only then Mcrypt).
php -v
PHP 5.4.4 (cli) (built: Jul 4 2012 17:28:56)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with XCache v2.0.0, Copyright (c) 2005-2012, by mOo
phpinfo();
APC Support enabled
Version 3.1.9
APC Debugging Disabled
MMAP Support Enabled
MMAP File Mask no value
Locking type File Locks
Serialization Support php
Revision
Build Date Jul 4 2012 17:31:27
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.