Skip to content

Commit 2bd28ef

Browse files
committed
EnumToArray and ScopeSelectAllBut
1 parent c3111d2 commit 2bd28ef

23 files changed

+178
-437
lines changed

.github/ISSUE_TEMPLATE/config.yml

+4-4
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/laracraft-tech/laravel-useful-traits/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/laracraft-tech/laravel-useful-traits/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/laracraft-tech/laravel-useful-traits/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/laracraft-tech/laravel-useful-traits/issues/new
1414
about: Report a reproducible bug

CHANGELOG.md

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

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

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <[email protected]>
3+
Copyright (c) laracraft-tech <[email protected]>
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

+12-47
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,26 @@
1-
# :package_description
2-
3-
[![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)
4-
[![Tests](https://github.com/:vendor_slug/:package_slug/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/:vendor_slug/:package_slug/actions/workflows/run-tests.yml)
5-
[![Check & fix styling](https://github.com/:vendor_slug/:package_slug/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/:vendor_slug/:package_slug/actions/workflows/fix
6-
[![License](https://img.shields.io/packagist/l/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
<!--[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)-->
8-
<!--delete-->
9-
---
10-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
11-
12-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
13-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
14-
3. Have fun creating your package.
15-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
16-
---
17-
<!--/delete-->
1+
# A collection of useful Laravel traits!
2+
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/laracraft-tech/laravel-useful-traits.svg?style=flat-square)](https://packagist.org/packages/laracraft-tech/laravel-useful-traits)
4+
[![Tests](https://github.com/laracraft-tech/laravel-useful-traits/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/laracraft-tech/laravel-useful-traits/actions/workflows/run-tests.yml)
5+
[![Check & fix styling](https://github.com/laracraft-tech/laravel-useful-traits/actions/workflows/fix-php-code-style-issues.yml/badge.svg?branch=main)](https://github.com/laracraft-tech/laravel-useful-traits/actions/workflows/fix
6+
[![License](https://img.shields.io/packagist/l/laracraft-tech/laravel-useful-traits.svg?style=flat-square)](https://packagist.org/packages/laracraft-tech/laravel-useful-traits)
7+
<!--[![Total Downloads](https://img.shields.io/packagist/dt/laracraft-tech/laravel-useful-traits.svg?style=flat-square)](https://packagist.org/packages/laracraft-tech/laravel-useful-traits)-->
8+
189
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
1910

2011
## Installation
2112

2213
You can install the package via composer:
2314

2415
```bash
25-
composer require :vendor_slug/:package_slug
26-
```
27-
28-
You can publish and run the migrations with:
29-
30-
```bash
31-
php artisan vendor:publish --tag=":package_slug-migrations"
32-
php artisan migrate
33-
```
34-
35-
You can publish the config file with:
36-
37-
```bash
38-
php artisan vendor:publish --tag=":package_slug-config"
39-
```
40-
41-
This is the contents of the published config file:
42-
43-
```php
44-
return [
45-
];
46-
```
47-
48-
Optionally, you can publish the views using
49-
50-
```bash
51-
php artisan vendor:publish --tag=":package_slug-views"
16+
composer require laracraft-tech/laravel-useful-traits
5217
```
5318

5419
## Usage
5520

5621
```php
57-
$variable = new VendorName\Skeleton();
58-
echo $variable->echoPhrase('Hello, VendorName!');
22+
$laravelUsefulTraits = new LaracraftTech\LaravelUsefulTraits();
23+
echo $laravelUsefulTraits->echoPhrase('Hello, LaracraftTech!');
5924
```
6025

6126
## Testing
@@ -78,7 +43,7 @@ Please review [our security policy](../../security/policy) on how to report secu
7843

7944
## Credits
8045

81-
- [:author_name](https://github.com/:author_username)
46+
- [Zacharias Creutznacher](https://github.com/laracraft-tech)
8247
- [All Contributors](../../contributors)
8348

8449
## License

composer.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "laracraft-tech/laravel-useful-traits",
3+
"description": "A collection of useful Laravel traits!",
44
"keywords": [
5-
":vendor_name",
5+
"laracraft-tech",
66
"laravel",
7-
":package_slug"
7+
"laravel-useful-traits"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/laracraft-tech/laravel-useful-traits",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "[email protected]",
13+
"name": "Zacharias Creutznacher",
14+
"email": "[email protected]",
1515
"role": "Developer"
1616
}
1717
],
@@ -35,13 +35,13 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"VendorName\\Skeleton\\": "src",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories"
38+
"LaracraftTech\\LaravelUsefulTraits\\": "src",
39+
"LaracraftTech\\LaravelUsefulTraits\\Database\\Factories\\": "database/factories"
4040
}
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests"
44+
"LaracraftTech\\LaravelUsefulTraits\\Tests\\": "tests"
4545
}
4646
},
4747
"scripts": {
@@ -61,10 +61,10 @@
6161
"extra": {
6262
"laravel": {
6363
"providers": [
64-
"VendorName\\Skeleton\\SkeletonServiceProvider"
64+
"LaracraftTech\\LaravelUsefulTraits\\LaravelUsefulTraitsServiceProvider"
6565
],
6666
"aliases": {
67-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
67+
"LaravelUsefulTraits": "LaracraftTech\\LaravelUsefulTraits\\Facades\\LaravelUsefulTraits"
6868
}
6969
}
7070
},

config/skeleton.php

-6
This file was deleted.

config/useful-traits.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
// config for LaracraftTech/LaravelUsefulTraits
4+
return [
5+
6+
];

0 commit comments

Comments
 (0)