Skip to content

Commit eb2ee87

Browse files
committed
Chore: clean up the ReadMe and add changelog
1 parent add5e25 commit eb2ee87

File tree

4 files changed

+8
-46
lines changed

4 files changed

+8
-46
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Changelog
22

33
All notable changes to `laravel-module-design-commands` will be documented in this file.
4+
5+
## 0.0.1 - 2024-07-12
6+
7+
- initial release

README.md

+1-44
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
# This is a simple package to create an opinionated laravel module design.
2-
31
[![Latest Version on Packagist](https://img.shields.io/packagist/v/rockblings/laravel-module-design-commands.svg?style=flat-square)](https://packagist.org/packages/rockblings/laravel-module-design-commands)
42
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/rockblings/laravel-module-design-commands/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/rockblings/laravel-module-design-commands/actions?query=workflow%3Arun-tests+branch%3Amain)
53
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/rockblings/laravel-module-design-commands/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/rockblings/laravel-module-design-commands/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
64
[![Total Downloads](https://img.shields.io/packagist/dt/rockblings/laravel-module-design-commands.svg?style=flat-square)](https://packagist.org/packages/rockblings/laravel-module-design-commands)
75

8-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
9-
10-
## Support us
11-
12-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-module-design-commands.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-module-design-commands)
13-
14-
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).
15-
16-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
6+
This is a simple package to create an opinionated laravel module design.
177

188
## Installation
199

@@ -23,39 +13,6 @@ You can install the package via composer:
2313
composer require rockblings/laravel-module-design-commands
2414
```
2515

26-
You can publish and run the migrations with:
27-
28-
```bash
29-
php artisan vendor:publish --tag="laravel-module-design-commands-migrations"
30-
php artisan migrate
31-
```
32-
33-
You can publish the config file with:
34-
35-
```bash
36-
php artisan vendor:publish --tag="laravel-module-design-commands-config"
37-
```
38-
39-
This is the contents of the published config file:
40-
41-
```php
42-
return [
43-
];
44-
```
45-
46-
Optionally, you can publish the views using
47-
48-
```bash
49-
php artisan vendor:publish --tag="laravel-module-design-commands-views"
50-
```
51-
52-
## Usage
53-
54-
```php
55-
$moduleDesignCommands = new CreativeCrafts\ModuleDesignCommands();
56-
echo $moduleDesignCommands->echoPhrase('Hello, CreativeCrafts!');
57-
```
58-
5916
## Testing
6017

6118
```bash

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "rockblings/laravel-module-design-commands",
2+
"name": "creativecrafts/laravel-module-design-commands",
33
"description": "This is a simple package to create an opinionated laravel module design.",
44
"keywords": [
55
"CreativeCrafts Solutions",

src/Commands/CreateModuleCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ protected function configureStub(string $stubContent, string $namespace, string
339339

340340
protected function getConfigStub(): string
341341
{
342-
return app()->basePath().'/stubs/module-config.stub';
342+
return base_path('stubs/module-config.stub');
343+
// return app()->basePath().'/stubs/module-config.stub';
343344
}
344345

345346
protected function getRouteServiceProviderStub(): string

0 commit comments

Comments
 (0)