Skip to content

Commit 45926e1

Browse files
committed
feat: alterações cosméticas de UI/UX
1 parent 8a4416d commit 45926e1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/Http/Controllers/HomeController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class HomeController extends Controller
1313
*/
1414
public function index()
1515
{
16-
$forms = auth()->user()->forms;
16+
// get all forms from the current user orderded by id desc
17+
$forms = auth()->user()->forms()->orderBy('id', 'desc')->get();
1718

1819
if ($forms == null) {
1920
$forms = [];

database/migrations/2020_07_06_185039_create_forms_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function up()
1818
$table->bigIncrements('id');
1919
$table->foreignId('user_id');
2020
$table->boolean('is_accepting_replies')->index()->default(true);
21-
$table->boolean('is_auth_required')->index()->default(true);
22-
$table->boolean('is_one_reply_only')->index()->default(true);
21+
$table->boolean('is_auth_required')->index()->default(false);
22+
$table->boolean('is_one_reply_only')->index()->default(false);
2323
$table->string('title');
2424
$table->text('user_questions')->default('');
2525
$table->text('questions');

resources/views/reply/create.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<section>
55
<div class="container">
66
<header class="section-header">
7-
<h2>Reply</h2>
7+
<h2>Responder</h2>
88
<p>{{ $form->title }}</p>
99
</header>
1010

0 commit comments

Comments
 (0)