Skip to content

Commit

Permalink
bad method name fixed, styles fixed, ckeditor CDN included
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrik committed Jun 18, 2019
1 parent 7f62f96 commit e1a4026
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function boot()
$this->getFormsConfigPath() => config_path('easy_form/forms.php'),
$this->getViewsPath() => resource_path('views/vendor/easy_form'),
]);
$this->publiches([__DIR__ . '/resources/assets' => public_path('vendor/easy_form/assets')], 'assets');
$this->publishes([__DIR__ . '/resources/assets' => public_path('vendor/easy_form/assets')], 'assets');
}

private function getMainConfigPath()
Expand Down
4 changes: 4 additions & 0 deletions src/resources/config/config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php

return [
/**
* Application locales list, uses for multi language fields
* first locale in array is default
*/
'locales' => [
'en'
],
Expand Down
1 change: 0 additions & 1 deletion src/resources/views/plugins/ckeditor.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<script src="{{ asset('vendor/unisharp/laravel-ckeditor/ckeditor.js') }}"></script>
<script>
var options = {
filebrowserImageBrowseUrl: '/laravel-filemanager?type=Images',
Expand Down
1 change: 1 addition & 0 deletions src/resources/views/scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<script src="{{ asset('vendor/easy_form/assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('vendor/easy_form/assets/js/popper.min.js') }}"></script>
<script src="{{ asset('vendor/easy_form/assets/js/select2.min.js') }}"></script>
<script src="//cdn.ckeditor.com/4.11.4/standard/ckeditor.js"></script>
@show
4 changes: 2 additions & 2 deletions src/resources/views/styles.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@section('styles')
<link href="{{ asset('vendor/easy_form/assets/css/bootstrap.min.css') }}">
<link href="{{ asset('vendor/easy_form/assets/css/select2.css') }}">
<link href="{{ asset('vendor/easy_form/assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('vendor/easy_form/assets/css/select2.css') }}" rel="stylesheet">
@show

0 comments on commit e1a4026

Please sign in to comment.