This commit is contained in:
hackerESQ
2024-08-26 19:54:45 -05:00
parent 0497f4ab52
commit 8508f55cea
3 changed files with 19 additions and 5 deletions
@@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
class HoldingController extends Controller
{
/**
* Display the specified resource.
*/
public function show()
{
return view('holding.index');
}
}
@@ -2,9 +2,6 @@
namespace App\Http\Controllers;
use App\Models\Portfolio;
use App\Models\Transaction;
class TransactionController extends Controller
{
@@ -13,8 +10,7 @@ class TransactionController extends Controller
*/
public function index()
{
$user = request()->user();
return view('transaction.index', compact('user'));
return view('transaction.index');
}
}
+2
View File
@@ -23,6 +23,8 @@ Route::middleware(['auth:sanctum', config('jetstream.auth_session'), 'verified']
Route::get('/portfolio/create', [PortfolioController::class, 'create'])->name('portfolio.create');
Route::get('/portfolio/{portfolio}', [PortfolioController::class, 'show'])->name('portfolio.show');
Route::get('/portfolio/{portfolio}/{symbol}', [HoldingController::class, 'show'])->name('holding.show');
Route::get('/transactions', [TransactionController::class, 'index'])->name('transaction.index');
});