GithubHelp home page GithubHelp logo

laravel-5-api-boilerplate's People

Contributors

nkrantz23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-5-api-boilerplate's Issues

mcrypt_encrypt(): Key of size 40 not supported by this algorithm.

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.

Composer

Will be better not versioning the file composer.lock.

Checking if resource exist or not and responding with error Message but the response goes on 200 OK !!!!

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 !

Class App\Http\Middleware\VerifyCsrfToken does not exist

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.