Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/cholladay0816/CreatorCore
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
cholladay0816 committed Aug 24, 2023
2 parents f2c81a5 + dfcc7ab commit fe62a08
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
6 changes: 4 additions & 2 deletions app/Http/Livewire/Onboarding/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ class Index extends Component
public ?Creator $creator;


public function mount() {
public function mount()
{
$this->form['account_type'] = Session::get('account_type');
$this->refresh();
}

public function updatedForm($value, $key){
public function updatedForm($value, $key)
{
Session::put($key, $value);
}

Expand Down
5 changes: 2 additions & 3 deletions app/Http/Livewire/Profile/PaymentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ class PaymentDetails extends Component
public string|null $redirect = null;
public function mount()
{
if(is_null($this->redirect))
{
$this->redirect = route('profile.show');
if(is_null($this->redirect)) {
$this->redirect = route('profile.show');
}
}
public function render()
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Livewire/Profile/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class Stripe extends Component

public function mount()
{
if(is_null($this->redirect))
{
if(is_null($this->redirect)) {
$this->redirect = route('profile.show');
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Middleware/OnboardingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class OnboardingMiddleware
*/
public function handle(Request $request, Closure $next)
{
if(!auth()->user()->onboarded_at)
{
if(!auth()->user()->onboarded_at) {
return redirect()->route('onboarding');
}
return $next($request);
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\Support\Facades\Schema;

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

0 comments on commit fe62a08

Please sign in to comment.