nkrantz23 / laravel-5-api-boilerplate Goto Github PK
View Code? Open in Web Editor NEWEmpty REST API project shell.
Empty REST API project shell.
With a fresh installation, I try to enter on "localhost/v1/sample" and i get the next error:
ErrorException in Encrypter.php line 81:
mcrypt_encrypt(): Key of size 40 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported
I tried to get the last version of mcrypt, but nothing changed.
Will be better not versioning the file composer.lock
.
try {
$pack = pack::findOrFail($id);
return $this->respondWithItem($pack, function ($pack)
{
return [
'id' => (integer) $pack['id'],
'slug' => $pack['slug'],
'description' => $pack['description'],
'created_at' => $pack['created_at'],
'updated_at' => $pack['updated_at']
];
});
}catch (ModelNotFoundException $e) {
$message = 'Non Existant Pack';
return $this->respondWithError($message, '1404');
}
}
So I think, i'm not using it the right way i guess !
I did the steps:
# Cloned the respository
$ cp .env.testing .env
$ touch storage/testing.sqlite
$ php artisan migrate --env=testing
$ vendor/bin/codecept run
And when I try to access localhost I get the next error:
ReflectionException in Container.php line 776:
Class App\Http\Middleware\VerifyCsrfToken does not exist
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.