Permalink
Browse files

Creating a Standup UI - Part 2

  • Loading branch information...
andreamswick committed Apr 8, 2018
1 parent 46d6d17 commit d6b8459cd14524acad1c2ba78462b6574d8eb7db
@@ -15,7 +15,14 @@ public function index()
public function store()
{
request()->user()->currentTeam->standups()->create(request()->all());
$data = request()->validate([
'name' => 'required',
'recipients' => 'required',
'questions' => 'required',
'send_at' => 'required'
]);
request()->user()->currentTeam->standups()->create($data);
return response()->json([], 201);
}
@@ -6,7 +6,7 @@
class Standup extends Model
{
protected $guarded = [];
protected $fillable = ['name', 'questions', 'send_at', 'recipients'];
protected $casts = [
'recipients' => 'array',
@@ -18,7 +18,7 @@ public function up()
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->unsignedInteger('current_team_id');
$table->unsignedInteger('current_team_id')->nullable();
$table->rememberToken();
$table->timestamps();
@@ -21,10 +21,11 @@
"popper.js": "^1.12",
"tailwindcss": "^0.5.2",
"vue": "^2.5.7",
"vuedraggable": "^2.14.1",
"vue-popperjs": "^1.2.2"
"vue-popperjs": "^1.2.2",
"vuedraggable": "^2.14.1"
},
"dependencies": {
"botman-tinker": "^0.0.1"
"botman-tinker": "^0.0.1",
"flatpickr": "^4.4.4"
}
}
Oops, something went wrong.

0 comments on commit d6b8459

Please sign in to comment.