GithubHelp home page GithubHelp logo

ozdemirburak / laravel-9-simple-cms Goto Github PK

View Code? Open in Web Editor NEW
683.0 52.0 305.0 2.91 MB

Laravel 9 content management system for starters.

License: MIT License

PHP 66.07% Shell 0.20% Blade 33.72%
cms laravel php php-cms content-management content-management-system bulma hacktoberfest laravel-9

laravel-9-simple-cms's People

Contributors

andrewnatoli avatar benjaminpaap avatar boynoiz avatar dependabot[bot] avatar gusilveiramp avatar hamer-iboshi avatar isimicic avatar junaidjaved248 avatar niranrat avatar ozdemirburak avatar philmarc avatar shirshak55 avatar sndrsnk avatar theadeyemiolayinka avatar xewl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-9-simple-cms's Issues

publish

Make sure that you run php artisan vendor:publish after install.

/** update */
Class App\Http\Controllers\Application\Auth\LoginController does not exist

I thought running publish would fix this but nope.
Im having a look at it now

Analytics error config. Can i Disable Analytics?

Google_Service_Exception in REST.php line 110:
Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A104911547&start-date=2015-06-07&end-date=2015-07-07&metrics=ga%3Asessions&dimensions=ga%3Akeyword&sort=-ga%3Asessions&max-results=16&filters=ga%3Akeyword%21%3D%28not+set%29%3Bga%3Akeyword%21%3D%28not+provided%29: (403) User does not have any Google Analytics account.

y tried sincro gmail configs step by step but cant solved. Can i Disable Analytics?

Read Count Redundancy.

Hi,
As we know I was unable to find ArticleWasViewed Event as well as its listener I removed these line in pull request

        \App\Events\ArticleWasViewed::class => [
            \App\Listeners\IncrementArticleViews::class,
        ],

So there is a problem due to this. Either we should create that event as well as its listener or we should remove number of things from the code like;

From Migration 2015_04_06_131957_create_articles_table.php:
We need to remove this line:

$table->unsignedInteger('read_count')->default(0)->index();

From lang\en\admin.php:
105: 'read_count' => 'Read Count',

And the most important we need to remove read_count from this Http\Controllers\Api\DataTables\ArticleDataTable.php as we don't want user to see 0 always:
34: protected $common_columns = ['read_count', 'published_at', 'created_at', 'updated_at'];

I would like to submit pull request but i would like to know whether i should create events and listeners or remove those side effects.

Datatables Multi column search

I am trying to implement the search for each columns of my datatable, as seen here :
http://datatables.yajrabox.com/eloquent/multi-filter-select

I added and customized the php part into app\Base\Controllers\DataTableController.php, but I can't figure out how to modify the rendered datatables javascript.

I think I need to add the initComplete js function inside the protected $parameters, but it doesn't make sense to add javascript in an array like that.

I can't modify the resources\views\vendor\datatables\script.blade.php either, since the initComplete needs to be inside of the .DataTable({ //here }) , and not .DataTable({ } //here )

Any hint ?

Unable to run "npm run production"

Hi,

After running the "npm run production" command I'm getting the error:

hasan@hasan-pc:~/Dev/Projects/GitHub/laravel-5-simple-cms (master)*$ npm run production

> @ production /home/hasan/Dev/Projects/GitHub/laravel-5-simple-cms
> node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

/home/hasan/Dev/Projects/GitHub/laravel-5-simple-cms/node_modules/laravel-mix/setup/webpack.config.js:120
        let extractPlugin = new plugins.ExtractTextPlugin(
        ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at requireConfig (/home/hasan/Dev/Projects/GitHub/laravel-5-simple-cms/node_modules/webpack/bin/convert-argv.js:96:18)
    at /home/hasan/Dev/Projects/GitHub/laravel-5-simple-cms/node_modules/webpack/bin/convert-argv.js:109:17
    at Array.forEach (native)

npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @ production: `node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ production script 'node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs 
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls 
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/hasan/Dev/Projects/GitHub/laravel-5-simple-cms/npm-debug.log

Versions:

hasan@hasan-pc:~/Dev/Projects/GitHub/laravel-5-simple-cms (master)*$ npm -v
3.5.2

hasan@hasan-pc:~/Dev/Projects/GitHub/laravel-5-simple-cms (master)*$ node -v
v4.2.6

Unchecked checkbox not being saved

After adding custom checkbox, is_active, inside Article form builder I run into an issue because unchecked checkboxes won't be included in the POST data, so after checking a checkbox, it's impossible to uncheck it. Function getData ($request->all) inside AdminController will return value only if checkbox is checked.

Custom Resource returns 404

After successful installation app and a custom resoruces returns DataTableController not found error:
2017-12-04_13-03-22
In the following image, the slug inside marked area redirects to /admin/about then the app returns the error.
2017-12-04_13-45-15


Also some issues I have encountered are listed below:

  • Even if I configured the .env with my google_api as ANALYTICS_CONFIGURED=true together with VIEW_ID and CREDENTIALS, not able to reach dashboard
  • So it triggers the DataTables warning: table id=dataTableBuilder - Ajax error. For more information about this error, please see http://datatables.net/tn/7
  • The same error also presents in categories, article, and user views

Apart from all that, the project is ideal for starter.

Nesteble Pages not working

Firstly, Great Starting point for any laravel project!

However going about i noticed that /admin/page the drag and drop nesteble doesn't work.

ErrorException in PageController.php line 128:
Undefined property: stdClass::$id

Regards.

foreign key constraint fails with php artisan db:seed

I am still trying to install. with the $ php artisan db:seed
I get another error.

Please advice.
Thank you

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (oz.categories, CONSTRAINT
categories_language_id_foreign FOREIGN KEY (language_id) REFERENCES la nguages (id)) (SQL: insert into categories (color, description, l anguage_id, title, slug, updated_at, created_at) values (#459016,
Qui ea repudiandae id magni ut et., 2, Enim ut sint vel., enim-ut-sint-vel,
2017-12-31 15:00:47, 2017-12-31 15:00:47))

In PDOStatement.php line 107:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (oz.categories, CONSTRAINT
categories_language_id_foreign FOREIGN KEY (language_id) REFERENCES la nguages (id))

In PDOStatement.php line 105:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (oz.categories, CONSTRAINT
categories_language_id_foreign FOREIGN KEY (language_id) REFERENCES la nguages (id))

How do I add more social media icons?

I have basic understanding of Laravel, but I'm not really familiar with it that much. I found the applications.blade.php file where the social media buttons are. Do I just simply copy a line of this

@if(!empty(Config::get('settings')->twitter)) <li><a target="_blank" href="{{ Config::get('settings')->twitter }}"><i class="fa fa-twitter"></i></a></li> @endif

And change the twitter to instagram?

Count parameter error for blog / page

So i got everything installed, but i get an error when i click on specific posts or page.

count(): Parameter must be an array or an object that implements Countable (View: /home/vagrant/code/ozz/resources/views/application/article/index.blade.php)

ErrorException (E_ERROR)
count(): Parameter must be an array or an object that implements Countable (View: /home/vagrant/code/ozz/resources/views/application/page/index.blade.php)

I suppose it has to do with this.
PHP changed count() behavior?
https://wiki.php.net/rfc/counting_non_countables

Image not found on npm run production

HI
i got this error on npm run production :

ERROR in ./node_modules/admin-lte/dist/img/boxed-bg.jpg Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib Referenced from: /Applications/XAMPP/xamppfiles/htdocs/lproject/node_modules/mozjpeg/vendor/cjpeg Reason: image not found

How do I install this on windows?

I used choco to install nodejs and I'm having second doubts on installing npm since it says that it is already deprecated.

These are the commands that I am not sure if I should run or not:
sudo apt-get install npm
sudo npm install --global gulp bower
sudo npm install
bower install
gulp --production

Any help would be very much appreciated

@fa not rendered

Hello, I think there is missing package/dependencies in composer.json or another package maybe? The @fa not rendered in server and showing that as is @fa. You can see picture below.

screenshot

Error when cloning and using composer install

Hi!, i was trying to install the project as the quickstart guide say:

$ git clone https://github.com/ozdemirburak/laravel-5-simple-cms.git
$ composer install

But i get this error when composer is finishing

> php artisan ide-helper:generate


  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  There are no commands defined in the "ide-helper" namespace.    


Script php artisan ide-helper:generate handling the post-update-cmd event returned with error code 1

Fresh Install: npm error

Hello,
I'm installing version 5.2, when running npm install production I get the following error:

**npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "prouction"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10

npm ERR! missing script: prouction
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\xampp\htdocs\cms\npm-debug.log**

packages.json:
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^4.0.0",
"bootstrap-sass": "^3.0.0"
}
}

Bower install hatasi ve gulp hatasi

Merhaba bower install yapinca bu hatayi aliyorum

bower nestable2#3af285bc16c0253b0269419d82940c43a3414df4          ECMDERR Failed to execute "git clone git://github.com/RamonSmit/Nestable.git

sonra gulp --production yapinca bircok less not found hatasi aliyorum

sonra browserda bu hatayi aliyorum :) hayatim hep hata benim :)

screencapture-localhost-8000-1443189268785

I completely set it up properly.

But I had to changed mix() to asset(). Because 404 not found if not using asset(). How come you guys make it work with mix() path. #

Cannot use Collective\Html\HtmlServiceProvider as HtmlServiceProvider because the name is already in use

Hi,

While trying to setup app from master branch under vagrant with php7, I stuck at first artisan command (php artisan key:generate) and it said:

PHP Fatal error: Cannot use Collective\Html\HtmlServiceProvider as HtmlServiceProvider because > the name is already in use in /var/www/xxx/vendor/yajra/laravel-datatables-oracle/src/DatatablesServiceProvider.php on line 5

[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot use Collective\Html\HtmlServiceProvider as HtmlServiceProvider because the name is already in use

analytics

Is there an option to disable google analytics?

All pages are blank (no HTML or anything)

Having followed the instructions and everything installs successfully, the following URLs result in completely blank pages, after running php artisan serve

http://localhost:8000

http://localhost:8000/auth/login

If I set APP_DEBUG=true, it reveals the following error.

File css/admin.css not defined in asset manifest. (View: /Users//Sites//resources/views/layouts/auth.blade.php) (View: /Users//Sites//resources/views/layouts/auth.blade.php)

Use Customized Stubs for Resource Generation from Console

Currently, when the cms:generate command is executed, it generates all the files needed, but it can be extended with more customized stubs. For instance take a look at the Admin/ArticleController.

For each resource, what will differ is the resource's name, everything else is nearly the same. So with a stub like below, it can be auto generated easily.

<?php

namespace App\Http\Controllers\Admin;

use App\{{$RESOURCE}};
use App\Base\Controllers\AdminController;
use App\Http\Controllers\Api\DataTables\{{$RESOURCE}}DataTable;
use App\Http\Requests\Admin\{{$RESOURCE}}Request;

class {{$RESOURCE}}Controller extends AdminController
{
    /**
     * Display a listing of the {{$resource}}s.
     *
     * @param {{$RESOURCE}}DataTable $dataTable
     * @return Response
     */
    public function index({{$RESOURCE}}DataTable $dataTable)
    {
        return $dataTable->render($this->viewPath());
    }

    /**
     * Store a newly created {{$resource}} in storage
     *
     * @param {{$RESOURCE}}Request $request
     * @return Response
     */
    public function store({{$RESOURCE}}Request $request)
    {
        return $this->createFlashRedirect({{$RESOURCE}}::class, $request);
    }

    /**
     * Display the specified {{$resource}}.
     *
     * @param {{$RESOURCE}} ${{$resource}}
     * @return Response
     */
    public function show({{$RESOURCE}} ${{$resource}})
    {
        return $this->viewPath('show', ${{$resource}});
    }

    /**
     * Show the form for editing the specified {{$resource}}.
     *
     * @param {{$RESOURCE}} ${{$resource}}
     * @return Response
     */
    public function edit({{$RESOURCE}} ${{$resource}})
    {
        return $this->getForm(${{$resource}});
    }

    /**
     * Update the specified {{$resource}} in storage.
     *
     * @param {{$RESOURCE}} ${{$resource}}
     * @param {{$RESOURCE}}Request $request
     * @return Response
     */
    public function update({{$RESOURCE}} ${{$resource}}, {{$RESOURCE}}Request $request)
    {
        return $this->saveFlashRedirect(${{$resource}}, $request);
    }

    /**
     * Remove the specified {{$resource}} from storage.
     *
     * @param  {{$RESOURCE}}  ${{$resource}}
     * @return Response
     */
    public function destroy({{$RESOURCE}} ${{$resource}})
    {
        return $this->destroyFlashRedirect(${{$resource}});
    }
}

So the script will edit or create the controller file with the stub above with replacing {{$RESOURCE}} with title cased resource name and {{$resource}} with lower cased resource name.

Also same can be done with the other files. For more information, readme file shows the whole process where some parts of it can be handled by the script.

Console Commands

It would be awesome to have some console commands that would speed up the resource generation.

For instance, the commands below are needed to generate a new resource.

$ php artisan make:controller Admin/FruitController
$ php artisan make:migration:schema create_fruits_table --schema="language_id:unsignedInteger:foreign, title:string, slug:string:unique, content:text"
$ php artisan make:request Admin/FruitRequest
$ php artisan make:form Forms/Admin/FruitsForm
$ php artisan migrate

Instead of the 5 different commands above, one can simply call the command below where some function will call the above commands.

$ php artisan make:resource Admin/Fruit --schema='language_id:unsignedInteger:foreign, title:string, slug:string:unique, content:text'

Furthermore, one would also generate the request and the form files using a stub and append the language strings to the language files where keys are the database fields and their default values are just the title cased conversion of themselves.

Improvements in code

I know this cms is old and is updated to 5.4 and still works like a charm. But there are many places like in AdminController where we can make code very beautiful and clean . Like I see in many places in Admin Controller @ uploadAndGetPath() where you use Storage Facades. Laravel used to be like that but at 5.3 or 5.4 api has drastically changed and we can use storeAs methods like that. And in method like getSubDirectory() we can use variety of laravel function like class_basename so you don't need to end up exploding imploding etc.

Second Concerns :
I think simple cms should use many dependencies and many dependencies are not even preferred by laravel . Like that laravel collective, laracasts-generator seems to be abandoned. I also think you kept some dependencies so that user making cms can know there are such packages also . But on other side user may feel complicated isn't it?

And I am also planning to write more tests.

So is it ok to send pull request with improvement .

Create Basic Tests

Unfortunately, there are not any tests that covers the application yet.

It would be great to have at least some basic tests that check whether the pages and routes are working.

public function testHome()
{
    $this->visit('/')
      ->see('Blog');
}

Or things like checking if the login page is working or not.

public function testLogin()
{
    $this->visit('/auth/login')
      ->submitForm('Login', ['email' => '[email protected]', 'password' => '123456'])
      ->seePageIs('/admin');
}

file_get_contents(../public\build/rev-manifest.json): failed to open stream: No such file or directory

I'd download this project and install this on window (opensever local) by all step. But I see this error and web is not success. Could you help me.

ErrorException in helpers.php line 343:
file_get_contents(C:\OpenServer\domains\approcket.com\public\build/rev-manifest.json): failed to open stream: No such file or directory (View: C:\OpenServer\domains\approcket.com\resources\views\layouts\application.blade.php) (View: C:\OpenServer\domains\approcket.com\resources\views\layouts\application.blade.php)

Gulp Hatası

screenshot from 2016-10-04 16 29 01

Hocam projesinizde böyle bir hata var baya araştırdım ama çözüm bulamadım gulp-less diye bir projede bir şeylerden bahsediyor ama yardım ederseniz sevinirim

Add article's slug in url for SEO

I think we should add Article's slug in URL for SEO.

in route file

Route::group(['namespace' => 'Application'], function () {
        Route::get('article/{article}/{slug?}', ['as' => 'article', 'uses' => 'ArticleController@index']);
    });

and in view/application/home/index.blade.php

<a href="{{ route('article', ['id' => $article->id, 'slug' => $article->slug])}}">{{ $article->title }}</a>

and same in Category's slug.

Any suggest?

Destroy Language

I found an issue when I try to destroy a language that already in use by category so I think it should have some method to check if the language is already in use or not.

I use simple code likes this :) , in App\Http\Controllers\Admin\LanguageController.php

public function destroy(Language $language)
    {
        $checkLang = Category::where('language_id', '=', $language->id)->all();
        if (count($checkLang))
        {
            Flash::error('This language already in use. Please change the language in the Category first!');
            return Redirect::back();
        }
        return $this->destroyFlashRedirect($language);
    }

I think it could use by Model relationship but I don't know how.

Upgrade from Bootstrap 3

Currently this project uses Bootstrap 3.3.7 which is outdated and has XSS vulnerability, it can be upgraded to Bootstrap 4 easily.

On the other hand, if you are up to something more challenging, then using Bulma and removing the Admin LTE dependency is more welcome.

Install SluggableModel.php problem

I am trying to install this cms but i get the following error when I am with the following step
$ php artisan db:seed after Seeding: CategoriesTableSeeder

In SluggableModel.php line 38:

Type error: Argument 1 passed to App\Base\SluggableModel::customizeSlugEngi
ne() must be an instance of App\Base\Slugify, instance of Cocur\Slugify\Slu
gify given, called in /home/vagrant/code/oz/vendor/cviebrock/eloquent-slugg
able/src/Services/SlugService.php on line 199

Please advice. Thank you

Why are the views encrypted?

Sorry, I'm not really that familiar with projects like these. Actually, everything about laravel is kind of mind blowing for me. Should I edit the encrypted view files to make some changes? or is it wrong to do so?

Separate upload path in ImageService

Hi,

I try to add column "image" for Article to make it like "Featured Image" in Wordpress and in ImageService I see

$path = '/uploads/' . str_plural($field);
$move_path = public_path() . $path;
$file->move($move_path, $fileName);

if I want to separate path of image location like "user", "article"

$path = '/assets/images/' . str_plural($field);
$move_path = public_path() . $path;
$file->move($move_path, $modelName, $fileName);

or something like this so could you please guide me to do that?

Thank you

Support for laravel 5.4?

Are you planning to update for laravel 5.4 as many thing like laravel elixir has been changed?

Should i pull request?

serve edilirken hata

Selam. php artisan serve dediğimde hata alıyorum:

ali@linux-ch8p:~/blog> php artisan serve

[Symfony\Component\Debug\Exception\FatalThrowableError]                   
Fatal error: Class 'Barryvdh\Elfinder\ElfinderServiceProvider' not found

Bu hata app.php içindeki tüm harici dosyaların çağırımında da mevcut:

Barryvdh\Elfinder\ElfinderServiceProvider::class,
        Baum\Providers\BaumServiceProvider::class,
        Caffeinated\Menus\MenusServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,
        Chumper\Datatable\DatatableServiceProvider::class,
        Cviebrock\EloquentSluggable\SluggableServiceProvider::class,
        Kris\LaravelFormBuilder\FormBuilderServiceProvider::class,
        Laracasts\Flash\FlashServiceProvider::class,
        Mews\Purifier\PurifierServiceProvider::class,
        Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider::class

Belki dokumantasyonda o bağımlılıkları da açıklayabilirsiniz.

I can´t Install it my server is running PHP 5.6.25

When I run composer install I get these errors:

Problem 1
- This package requires php >=7.0 but your PHP version (5.6.25) does not satisfy that requirement.
Problem 2
- Installation request for spatie/laravel-analytics ~2.4 -> satisfiable by spatie/laravel-analytics[2.4.0].
- spatie/laravel-analytics 2.4.0 requires php ^7.0 -> your PHP version (5.6.25) does not satisfy that requirement.

Is there a way to solve this problem more than update my php version?

Thanxs

Customize the Datatable

I want to add the CSS class "table-condensed" to the <table class="table dataTable no-footer" id="dataTableBuilder">

Where can I do that?

dataTable Ajax error

Hello Friend,

first of all, I want to congratulate you for the excellent work.
I would like to know if you may help me to solve one small problems, if possible:

The User page, in the Admin área, is with instability related to datatables. Sometimes, when you click on "All users", the following error appears:

"DataTables warning: table id=dataTableBuilder - Ajax error. For more information about this error, please see http://datatables.net/tn/7"

error-1

error-2

Apparently it only occurs in the User area. It happens on the average every 2 or 3 times that I access the "All users" page. Not always happen and when I refresh the page, usually, it is solved (but not always, too).

Could you help me with that?

Error on my analytics id

My analytics ID is 105226917 which is the one after the letter p

https://www.google.com/analytics/web/?authuser=0#management/Settings/a50391710w101288507p105226917/

So it looks like this now: ANALYTICS_SITE_ID=ga:105226917

And this is the error I am getting when I'm trying to access /admin:

Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A105226917&start-date=2015-06-14&end-date=2015-07-14&metrics=ga%3Asessions&dimensions=ga%3Akeyword&sort=-ga%3Asessions&max-results=16&filters=ga%3Akeyword%21%3D%28not+set%29%3Bga%3Akeyword%21%3D%28not+provided%29: (403) User does not have any Google Analytics account.

Any idea why this is happening?

Datatable eager load count relations

Is it possible to have a column that counts the relations?

For example, I have an article with many comments.
On the datatable articles page (in the admin), I have a "title" column, a "slug" column, and I would like a "comments" column, that displays a count of related comments for each article.

So I eager load the comments in my controller Api\DataTables\ArticleDataTable.php

    public function query()
    {
        $articles = Thread::with('comments');
        return $this->applyScopes($articles);
    }

But how can I display them? There is an $eager_columns array, but no custom column array.

insufficient documentation

Hi admin,

yoru basic documentation are insufficient to make a newbei understand hwo your stuff work.s please add detailed documentation about instalatrion basic requirements , then steps to add extra services provided, I spent 3 hours but came to no result except deleting this CMS>I am using windows 10. If you can provide a detailed documentation it will be worthy thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.