This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prefix single components and collections - allow to remove namespace (#…
…84) * unify/improve component directories * allow to register multiple components and prefix them separately allow to prefix single components * fix and add unittests * improve bladex facade * replace registerComponents by components method flag registerComponents as internal * allow to register components by list of paths * fix php cs
- Loading branch information
1 parent
783cc39
commit 112ad46
Showing
10 changed files
with
431 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Spatie\BladeX; | ||
|
||
use Illuminate\Support\Collection; | ||
|
||
/** | ||
* @property-read Component $each | ||
*/ | ||
class ComponentCollection extends Collection | ||
{ | ||
public function prefix(string $prefix) | ||
{ | ||
$this->each->prefix($prefix); | ||
|
||
return $this; | ||
} | ||
|
||
public function withoutNamespace() | ||
{ | ||
$this->each->withoutNamespace(); | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.