Create TransactionController
ADD
app/Http/Controllers/TransactionController.php
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+
+class TransactionController extends Controller {
+ public function create() {
+ return view('transactions.create');
+ }
+}

ADD
resources/views/transactions/create.blade.php
+Here comes the money

MODIFY
routes/web.php
routes/web.php
@@ -16,6 +16,8 @@ Route::post('/register', 'RegisterController@store');
Route::group(['middleware' => ['auth']], function () {
Route::get('/dashboard', 'DashboardController')->name('dashboard');
+ Route::get('/transactions/create', 'TransactionController@create')->name('transactions.create');
+
Route::name('earnings.')->group(function () {
Route::get('/earnings', 'EarningController@index')->name('index');
Route::get('/earnings/create', 'EarningController@create')->name('create');

Create TransactionController