Skip to content

Commit ae9e199

Browse files
committed
first migration, model created
1 parent f4b7f2f commit ae9e199

22 files changed

+241
-396
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/upcoders.ir/laravel-shipping/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/upcoders.ir/laravel-shipping/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/upcoders.ir/laravel-shipping/security/policy
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/:vendor_name/:package_name/issues/new
13+
url: https://github.com/upcoders.ir/laravel-shipping/issues/new
1414
about: Report a reproducable bug

.github/workflows/php-cs-fixer.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/update-changelog.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.php_cs.dist.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-shipping` will be documented in this file.
44

55
## 1.0.0 - 202X-XX-XX
66

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) upcoders.ir <info@upcoders.ir>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11

22
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org)
33

4-
# :package_description
5-
6-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/run-tests?label=tests)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
8-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/Check%20&%20fix%20styling?label=code%20style)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
9-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
10-
<!--delete-->
11-
---
12-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
13-
14-
1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this skeleton.
15-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
16-
3. Have fun creating your package.
17-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
18-
---
19-
<!--/delete-->
4+
# The Laravel eCommerce Shipping package provides methods for shipping the products
5+
6+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/upcoders-ir/laravel-shipping.svg?style=flat-square)](https://packagist.org/packages/upcoders-ir/laravel-shipping)
7+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/upcoders-ir/laravel-shipping/run-tests?label=tests)](https://github.com/upcoders-ir/laravel-shipping/actions?query=workflow%3Arun-tests+branch%3Amain)
8+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/upcoders-ir/laravel-shipping/Check%20&%20fix%20styling?label=code%20style)](https://github.com/upcoders-ir/laravel-shipping/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
9+
[![Total Downloads](https://img.shields.io/packagist/dt/upcoders-ir/laravel-shipping.svg?style=flat-square)](https://packagist.org/packages/upcoders-ir/laravel-shipping)
10+
2011
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
2112

2213
## Support us
2314

24-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
15+
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-shipping.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-shipping)
2516

2617
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
2718

@@ -32,20 +23,20 @@ We highly appreciate you sending us a postcard from your hometown, mentioning wh
3223
You can install the package via composer:
3324

3425
```bash
35-
composer require :vendor_slug/:package_slug
26+
composer require upcoders-ir/laravel-shipping
3627
```
3728

3829
You can publish and run the migrations with:
3930

4031
```bash
41-
php artisan vendor:publish --tag=":package_slug-migrations"
32+
php artisan vendor:publish --tag="laravel-shipping-migrations"
4233
php artisan migrate
4334
```
4435

4536
You can publish the config file with:
4637

4738
```bash
48-
php artisan vendor:publish --tag=":package_slug-config"
39+
php artisan vendor:publish --tag="laravel-shipping-config"
4940
```
5041

5142
This is the contents of the published config file:
@@ -58,14 +49,14 @@ return [
5849
Optionally, you can publish the views using
5950

6051
```bash
61-
php artisan vendor:publish --tag=":package_slug-views"
52+
php artisan vendor:publish --tag="laravel-shipping-views"
6253
```
6354

6455
## Usage
6556

6657
```php
67-
$variable = new VendorName\Skeleton();
68-
echo $variable->echoPhrase('Hello, VendorName!');
58+
$laravelShipping = new Upcoders.ir\LaravelShipping();
59+
echo $laravelShipping->echoPhrase('Hello, Upcoders.ir!');
6960
```
7061

7162
## Testing
@@ -88,7 +79,7 @@ Please review [our security policy](../../security/policy) on how to report secu
8879

8980
## Credits
9081

91-
- [:author_name](https://github.com/:author_username)
82+
- [upcoders.ir](https://github.com/upcoders.ir)
9283
- [All Contributors](../../contributors)
9384

9485
## License

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "upcoders-ir/laravel-shipping",
2+
"name": "upcoders/laravel-shipping",
33
"description": "The Laravel eCommerce Shipping package provides methods for shipping the products",
44
"keywords": [
55
"upcoders.ir",
@@ -27,20 +27,21 @@
2727
"pestphp/pest": "^1.21",
2828
"pestphp/pest-plugin-laravel": "^1.1",
2929
"phpstan/extension-installer": "^1.1",
30+
"phpstan/phpstan": "^1.5",
3031
"phpstan/phpstan-deprecation-rules": "^1.0",
3132
"phpstan/phpstan-phpunit": "^1.0",
3233
"phpunit/phpunit": "^9.5",
3334
"spatie/laravel-ray": "^1.26"
3435
},
3536
"autoload": {
3637
"psr-4": {
37-
"Upcoders.ir\\LaravelShipping\\": "src",
38-
"Upcoders.ir\\LaravelShipping\\Database\\Factories\\": "database/factories"
38+
"Upcoders\\LaravelShipping\\": "src",
39+
"Upcoders\\LaravelShipping\\Database\\Factories\\": "database/factories"
3940
}
4041
},
4142
"autoload-dev": {
4243
"psr-4": {
43-
"Upcoders.ir\\LaravelShipping\\Tests\\": "tests"
44+
"Upcoders\\LaravelShipping\\Tests\\": "tests"
4445
}
4546
},
4647
"scripts": {
@@ -54,10 +55,10 @@
5455
"extra": {
5556
"laravel": {
5657
"providers": [
57-
"Upcoders.ir\\LaravelShipping\\LaravelShippingServiceProvider"
58+
"Upcoders\\LaravelShipping\\LaravelShippingServiceProvider"
5859
],
5960
"aliases": {
60-
"LaravelShipping": "Upcoders.ir\\LaravelShipping\\Facades\\LaravelShipping"
61+
"LaravelShipping": "Upcoders\\LaravelShipping\\Facades\\LaravelShipping"
6162
}
6263
}
6364
},

config/shipping.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
// config for Upcoders.ir/LaravelShipping
3+
return [
4+
5+
];

config/skeleton.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)