Skip to content

Setup Resources #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
setup resource classes
  • Loading branch information
ousid committed Apr 22, 2025
commit 07b753b70a74df2258cfcfebac6839b7d29fd80e
28 changes: 27 additions & 1 deletion src/LaravelSendy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,30 @@

namespace Coderflex\LaravelSendy;

class LaravelSendy {}
use Coderflex\LaravelSendy\Resources\Resources\Brands;
use Coderflex\LaravelSendy\Resources\Resources\Campaigns;
use Coderflex\LaravelSendy\Resources\Resources\Lists;
use Coderflex\LaravelSendy\Resources\Resources\Subscribers;

class LaravelSendy
{
public function subscribers(): Subscribers
{
return new Subscribers;
}

public function lists(): Lists
{
return new Lists;
}

public function brands(): Brands
{
return new Brands;
}

public function campaigns(): Campaigns
{
return new Campaigns;
}
}
2 changes: 1 addition & 1 deletion src/LaravelSendyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Coderflex\LaravelSendy;

use Coderflex\LaravelSendy\Commands\LaravelSendyCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Coderflex\LaravelSendy\Commands\LaravelSendyCommand;

class LaravelSendyServiceProvider extends PackageServiceProvider
{
Expand Down
8 changes: 8 additions & 0 deletions src/Resources/Brands.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\Resources\Resources;

class Brands
{
//
}
8 changes: 8 additions & 0 deletions src/Resources/Campaigns.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\Resources\Resources;

class Campaigns
{
//
}
8 changes: 8 additions & 0 deletions src/Resources/Lists.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\Resources\Resources;

class Lists
{
//
}
8 changes: 8 additions & 0 deletions src/Resources/Subscribers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\Resources\Resources;

class Subscribers
{
//
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Coderflex\LaravelSendy\Tests;

use Coderflex\LaravelSendy\LaravelSendyServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use Coderflex\LaravelSendy\LaravelSendyServiceProvider;

class TestCase extends Orchestra
{
Expand Down