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
Prev Previous commit
Next Next commit
preparing the resources
  • Loading branch information
ousid committed Apr 24, 2025
commit 0dc2b92bd62dc29761853cb8fec1610ec8992af8
19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

19 changes: 0 additions & 19 deletions database/migrations/create_sendy_table.php.stub

This file was deleted.

Empty file removed resources/views/.gitkeep
Empty file.
19 changes: 0 additions & 19 deletions src/Commands/LaravelSendyCommand.php

This file was deleted.

10 changes: 10 additions & 0 deletions src/DTOs/CompaignDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Coderflex\LaravelSendy\DTOs;

class CompaignDTO
{
public function __construct(
//
) {}
}
10 changes: 10 additions & 0 deletions src/DTOs/SubscribersDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Coderflex\LaravelSendy\DTOs;

class SubscribersDTO
{
public function __construct(
//
) {}
}
8 changes: 8 additions & 0 deletions src/Exceptions/CompaingException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\DTOs;

class CompaingException extends \Exception
{
//
}
8 changes: 8 additions & 0 deletions src/Exceptions/SubscribersException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Coderflex\LaravelSendy\DTOs;

class SubscribersException extends \Exception
{
//
}
6 changes: 1 addition & 5 deletions src/LaravelSendyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Coderflex\LaravelSendy;

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

Expand All @@ -17,9 +16,6 @@ public function configurePackage(Package $package): void
*/
$package
->name('laravel-sendy')
->hasConfigFile()
->hasViews()
->hasMigration('create_laravel_sendy_table')
->hasCommand(LaravelSendyCommand::class);
->hasConfigFile();
}
}
5 changes: 4 additions & 1 deletion src/Resources/Brands.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

class Brands
{
//
public function get()
{
//
}
}
5 changes: 4 additions & 1 deletion src/Resources/Campaigns.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

class Campaigns
{
//
public function create(array $data)
{
//
}
}
5 changes: 4 additions & 1 deletion src/Resources/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

class Lists
{
//
public function get(int $brandId, bool $includeHidden = false)
{
// Implementation to get lists
}
}
20 changes: 19 additions & 1 deletion src/Resources/Subscribers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,23 @@

class Subscribers
{
//
public function subscribe(array $data)
{
//
}

public function unsubscribe(int $listId, string $email)
{
//
}

public function delete(int $listId, string $email)
{
//
}

public function count(int $listId)
{
//
}
}