Walker Base
Walker Base

Reputation: 197

Laravel with Dynamodb

I created a User model and UserController

and my model User.php is

<?php    
namespace App;    
use Illuminate\Notifications\Notifiable;
use Aws\DynamoDb\DynamoDbClient;

class User extends \Aws\DynamoDb\DynamoDbClient
{
    protected $table = 'users';
    protected $fillable = array('email');
    protected $primaryKey = 'user_id';
}

when I create a object in UserController

public function postSignUp(Request $request)
    {    
        $user = new User();

it said the $user = new User();(line30) have error

Argument 1 passed to Aws\AwsClient::__construct() must be of the type array, none given, called in C:....\laravel\app\Http\Controllers\UserController.php on line 30 and defined

Thanks!!

Upvotes: 0

Views: 5173

Answers (0)

Related Questions