Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Kernel extends ConsoleKernel
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Product;
use Illuminate\Http\Request;

class ProductController extends Controller
{
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Controllers/Api/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function purchase(Request $request)
],
[
'password' => Hash::make(Str::random(12)),
'name' => $request->input('first_name') . ' ' . $request->input('last_name'),
'name' => $request->input('first_name').' '.$request->input('last_name'),
'address' => $request->input('address'),
'city' => $request->input('city'),
'state' => $request->input('state'),
Expand All @@ -40,7 +40,6 @@ public function purchase(Request $request)
'total' => $payment->amount,
]);


foreach (json_decode($request->input('cart'), true) as $item) {
$order->products()
->attach($item['id'], ['quantity' => $item['quantity']]);
Expand Down
1 change: 0 additions & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class RedirectIfAuthenticated
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @param string|null ...$guards
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
Expand Down
6 changes: 3 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
|
*/

if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}

Expand All @@ -31,7 +31,7 @@
|
*/

require __DIR__ . '/../vendor/autoload.php';
require __DIR__.'/../vendor/autoload.php';

/*
|--------------------------------------------------------------------------
Expand All @@ -44,7 +44,7 @@
|
*/

$app = require_once __DIR__ . '/../bootstrap/app.php';
$app = require_once __DIR__.'/../bootstrap/app.php';

$kernel = $app->make(Kernel::class);

Expand Down
4 changes: 1 addition & 3 deletions tests/Browser/BuyProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
//use Laravel\Dusk\Browser;
use Tests\DuskTestCase;



class BuyProductTest extends DuskTestCase
{
/**
Expand All @@ -18,7 +16,7 @@ class BuyProductTest extends DuskTestCase
public function testWeSeeVue()
{
/* $this->browse(function (Browser $browser) {

$browser->visit('http://127.0.0.1:8000')
->assertSee('Laravel');
});*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Browser/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testBasicExample()
$this->browse(function (Browser $browser) {
$browser->visit('/')
//->screenshot('home-page')
->assertSee('MacBook');
->assertSee('MacBook');
//->assertPathIs('/');
});
}
Expand Down
1 change: 0 additions & 1 deletion tests/Browser/Pages/HomePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function url()
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser
* @return void
*/
public function assert(Browser $browser)
Expand Down