Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 274fbf5

Browse files
author
Kerem
committed
Change Readme
1 parent 98ea75a commit 274fbf5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@ You can change the options of your app from `config/theme.php` file
4242

4343
## Usage
4444

45+
### Facade
4546
```php
46-
Theme::asset('app.css');
47-
Theme::asset('app.js');
47+
<link rel="stylesheet" href="{{ Theme::asset('app.css') }}">
48+
<script type="javascript" src="{{ Theme::asset('app.js') }}">
49+
```
50+
or you can create your css and js files automatically by using assetLink helper.
51+
```php
52+
Theme::assetLink('app.css'); // Output: <link rel="stylesheet" href="/themes/default/css/app.css">
53+
Theme::assetLink('app.js');
4854
```
4955
5056
### What's next?

0 commit comments

Comments
 (0)