Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Dec 16, 2023
1 parent a3208e1 commit 34a2d54
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Laravel
name: Deploy

on: [ push ]

jobs:
laravel-tests:
tests-and-deploy-steps:

runs-on: ubuntu-20.04

Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions app/Domain/Habits/DataTransferObjects/StoreHabitData.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
class StoreHabitData extends Data
{
public function __construct(
public int $userId,
public string $name,
public string $description,
public string $frequency,
public int $userId,
public string $name,
public ?string $description,
public string $frequency,
public ?string $scheduledTo,
public string $occurrenceDays,
public string $colour,
public string $occurrenceDays,
public string $colour,
) {
}

Expand All @@ -24,6 +24,7 @@ public static function fromRequest(
?string $scheduledTo,
string $occurrenceDays,
): self {
ray($request->input('name'));
return new self(
userId: $request->user()->id,
name: $request->input('name'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class() extends Migration
{
return new class() extends Migration {
public function up(): void
{
Schema::create('habits', function (Blueprint $table) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/
Expand Down

0 comments on commit 34a2d54

Please sign in to comment.