Giter Site home page Giter Site logo

bpocallaghan / laravel-admin-starter Goto Github PK

View Code? Open in Web Editor NEW
331.0 38.0 95.0 6.75 MB

A Laravel Admin Starter project with Page Builder, Roles, Impersonation, Analytics, Blog, News, Banners, FAQ, Testimonials and more

Home Page: http://bpocallaghan.co.za

PHP 60.43% Blade 39.57%
laravel php cms adminlte laravel-notifications page-builder impersonate generators hacktoberfest

laravel-admin-starter's Introduction

Laravel CMS Starter Project

Project is deprecated - please use https://github.com/bpocallaghan/titan-starter-website

A Laravel CMS Starter project with AdminLTE theme and core features.

Preview project here

What is New?

  • titan-starter
  • I have started from scratch an updated version. This version includes tests and Laravel 7 with Bootstrap 4.

Features / What it includes

  • Admin LTE admin theme
  • Members (website and admin users)
  • Google Analytics Reports (with charts)
  • Website Page Builder with 3 components (page content, photos, documents)
  • Log Website Activities (if contact us was submitted, etc)
  • Notifications (Laravel notifications)
  • Log Admin Activities (when admin create,edit,delete a resource)
  • Bootstrap Alerts and Form Error messages. bpocallaghan/alert
  • Flash a Notification after a CRUD resource action. bpocallaghan/notify
  • Generate crud resource, individual files. bpocallaghan/generators
  • Impersonate any of your customers. bpocallaghan/impersonate
  • Roles, Assign roles to the user and navigation to exlude navigation for a user.
  • Manage Blog, Banners, FAQ, Photos.
  • Reports with Chartjs

Setup (Basic)

  • composer create-project bpocallaghan/laravel-admin-starter:dev-master laravel-admin-starter
  • create your database
  • setup your virtual host (example: http://titan.local)
  • open .env and add database name and user
  • open database\seeds\UsersTableSeeder.php and set your admin user credentials
  • php titan:install` and complete the answers (setup app_name, app_author, app_url, etc)
  • The above command will set .env values, but you can manually edit it before running titan:install

Setup (Advanced)

TODO

Thank you

Note

  • I hardly maintain this repository anymore as all my free time goes into the new version: titan-starter
  • I do apologize about it (I still have live projects using this repository)

This is my starter project for most crud admin portals. I try to keep it clean, flexibly and friendly to use and to help the community. Please let me know about any issues or if you have any suggestions.

Change log

Please see the CHANGELOG for more information about changes.

My Packages Included

  • File Generators Laravel 5 File Generators with config and publishable stubs
  • Notify Laravel 5 Flash Notifications with icons and animations and with a timeout
  • Alert A helper package to flash a bootstrap alert to the browser via a Facade or a helper function.
  • Impersonate User This allows you to authenticate as any of your customers.
  • Sluggable Provides a HasSlug trait that will generate a unique slug when saving your Laravel Eloquent model.

laravel-admin-starter's People

Contributors

bpocallaghan avatar dependabot[bot] avatar nadja97 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

laravel-admin-starter's Issues

Missing Namespace and Use declaration in the Admin/General controller group

There was some missing and improper declaration of the Admin/General controller group generating 'Missing Controller Class Error'.

To correct the issue:
In the file: .../routes/web.php
Change line 132 to Route::group(['prefix' => 'general', 'namespace' => 'General'], function () {

And correct the header all of the Admin/General controller group files.
Proper namespace is for this group: namespace App\Http\Controllers\Admin\General;

And all of the controllers in this group should have a line before the starting Class declaration:
use App\Http\Controllers\Admin\AdminController;

image cannot load

great app and great work.

i installed this app on laravel 8, i try to upload image and succes, but image cannot load in the view. thx in advance

Error running php artisan db:seed on MacOs

This is possibly an issue on linux too where path uses forward slash (/). I add a var_dump and this is what I get:

Toms-MacBook-Pro:pledge tomn$ php artisan db:seed
Seeding: RoleTableSeeder
Seeding: UserTableSeeder
Seeding: BannerTableSeeder
Seeding: PageTableSeeder
string(69) "/Users/tomn/Desktop/work/brickinc/pledge/database\seeds\csv\pages.csv"

                                           
  [ErrorException]                         
  Invalid argument supplied for foreach()  
                                           

This happen on every seeders file that process CSVs. To temporarily resolve this issue, I updated this file: https://github.com/bpocallaghan/titan/blob/master/src/Helpers/helpers.php#L118

Like so:

    if (!file_exists($filename) || !is_readable($filename)) {
        $filename = str_replace('\\', '/', $filename);
    }
    
    if (!file_exists($filename) || !is_readable($filename)) {
        return false;
    }

I leave it to you to determine the best way to resolve this. Thanks.

Error on running the php artisan db:seed

Hi

I am stuck with the following error on running the php artisan db:seed

[BadMethodCallException]
Call to undefined method Illuminate\Database\Query\Builder::roles()

please help me out to resolve the issue

Add Admin Navigation

Hi @truelogicapp

Thank your trying out this package.

You've created the new menu item (admin - settings - navigation)
Then the new menu item appeared on the left and you clicked on it... - and now the error...
I am sure you know this - but any admin navigation - needs a Controller / Model / Views and defined in the routes/web.php for it to work.

Only the Website's Pages - can be managed from the admin via the page builder...

Just want to check in before going further... :)

Impersonate Package Still Using App\User

First and foremost I would like to thank you for this wonderful project.

The impersonate package is using the namespace App\User instead of App\Models\User which results to an error. Kindly check this out and fixx it

Question

(newbs comment incoming)

Olla!. how can I override or display my own views on a newly added page on the admin and/or on the website?

Admin CRUD always acts on FAQ Categories

Hi, I am trying to use laravel-admin-starter, in an old 5.4 (dev-Laravel_5.4 Laravel_5.4) because I need to execute under PHP 5.6.4 due to my server limitation.

It run ok, but in admin mode, always it stay on Categories, FAQ Categories.

I selects on admin menu any option and always apears in breadcrumb, FAQ Categories. For example I selects from menu /admin/general/tags appears thes create Tags form and in the "+ Create" button appears "+ Create Category" if I clicks it, its invokes admin/general/tags/create but when I submits it, the system notifies me that a new FAQ Category was created. Yes! FAQ Category, no TAGS!

The same occurs with other options.

It is possible to correct that problem, in this old version?

Can anyone help me?

Do anyone have any suggestion?

TIA

Suggestion: Change Summernote for Toast.io

I've used Summernote a bit now, and I am not impressed for a few reasons:

  • It does not allow me to use relative links, in both html or their built-in link builder
  • It looks old and dated (ok, they have themes.. but still..)
  • Development is a bit stagnant, It does not look like they are going be expanding or growing it much more than how it is today.

I've had a look for a replacement and found
Toast.io, and it looks as if it does all the things Summernote does, only it uses markdown instead of a html code editor.

I think that the majority of use-cases, WYSIWYG with Markdown would be better than WYSIWYG with
HTML.

It looks like it would pretty much be a drop-in replacement from what I can see. I'm not sure if there are any specific features in Summernote that makes it better.

Feature requests

Hello @bpocallaghan

I read on a previous issue that you want to rewrite the code from beginning.

After successfully installing the site in homestead, I came across some questions which you maybe can take notice off when rewriting the project.

  • Loading time. Overall the site loads pretty fast, also admin. But sometimes it takes a bit when clicking on specific category or page. Is this normal and just the way laravel based sites loads? Or can it be made that it loads really fast. like click and 'bam' it's there (assuming that the content size is just normal of course).

  • I like it that you have integrated a gallery system in the admin, however i miss the option that you can reorder the images after uploading. I like the function that you can just reorder the images by moving them around with your mouse.

  • By the admin blog section. You have the gallery function on a different page. I prefer having everything on 1 page, so its faster to fill everything in and upload the images you want with the specific blog. Same as what you would have with a page when you add a gallery component it shows on the main edit page.

  • When adding images on a blog gallery. Instead having to refresh yourself, it's maybe nice that it refreshes automatic so you can see the results immediately. (when i uploaded the images, i overread your description, and was confused first what to do as i didn't see a 'save' button only a go back button.)

  • your overall site is pretty complete already. Both admin / front. The only main thing i miss is a search function in the front.

Maybe there are some more points which would be a nice extra feature but this is what i noticed when just checking it out.

But overall very good job on this admin package. The last week i have checked out many different packages (also big commercial ones) and all of them have their short comings. This is one of the nicest i came across.

Not found Profile Page

After successful registration following error appears when the user directs #to My Account :

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'App\Models\FAQ' not found

Details for the error as follows:

/home/bpocasgt/app/Http/Controllers/Website/Account/AccountController.php

<?php
 
namespace App\Http\Controllers\Website\Account;
 
use App\Models\FAQ;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Http\Controllers\Website\WebsiteController;
 
class AccountController extends WebsiteController
{
    public function index()
    {
        $faq = FAQ::whereHas('category', function($query) {  // FatalThrowableError :Line 14
            return $query->where('name', 'Account');
        })->orderBy('list_order')->get();
 
        return $this->view('account.account', compact('faq'));
    }
}

Arguments
"Class 'App\Models\FAQ' not found"

Api problem

Hi , i was testing your project all working fine and after few test i was checking the api and i see is not working so when i try route:list

C:\xampp\php\php.exe artisan route:list
"/"
"Whoops. Navigation not found - please see if url is in database (navigation_admin)"

Process finished with exit code 1 at 18:10:41.
Execution time: 1,413 ms.

and if i dump-autoload

C:\ProgramData\ComposerSetup\bin\composer.bat dump-autoload
Generating optimized autoload files
Warning: Ambiguous class resolution, "App\Events\ActivityWasTriggered" was found in both "C:/xampp/htdocs/app\Events\ActivityWasTriggered.php" and "C:/xampp/htdocs/app\Notifications\ActivityWasTriggered.php", the first will be used.
Warning: Ambiguous class resolution, "App\Events\BaseEvent" was found in both "C:/xampp/htdocs/app\Events\BaseEvent.php" and "C:/xampp/htdocs/app\Notifications\BaseEvent.php", the first will be used.
Warning: Ambiguous class resolution, "App\Events\ContactUsFeedback" was found in both "C:/xampp/htdocs/app\Events\ContactUsFeedback.php" and "C:/xampp/htdocs/app\Notifications\ContactUsFeedback.php", the first will be used.
Warning: Ambiguous class resolution, "App\Events\UserRegistered" was found in both "C:/xampp/htdocs/app\Events\UserRegistered.php" and "C:/xampp/htdocs/app\Notifications\UserRegistered.php", the first will be used.
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
Discovered Package: nesbot/carbon
Discovered Package: yajra/laravel-datatables-oracle
Discovered Package: spatie/laravel-analytics
Discovered Package: intervention/image
Discovered Package: bpocallaghan/notify
Discovered Package: bpocallaghan/impersonate
Discovered Package: bpocallaghan/alert
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: bpocallaghan/generators
Discovered Package: nunomaduro/collision
Discovered Package: bpocallaghan/titan
Package manifest generated successfully.

Process finished with exit code 0 at 18:12:59.
Execution time: 6,777 ms.
i removed the file BaseEvent, ContactUsFeedback, UserRegistered, ActivityWasTriggered from Notifications and all working fine but i dont know why this file extracted there is problem with php artisan titan:publish --files=app??? normaly as i see from titan folder i mast to see ContactUsSubmitted, UserConfirmedAccount and UserRegistered but is not extracted

Thanks

Errors: Errors even on installation

Errors on users table seeder:

Migrated: 2018_10_26_034432_alter_users_table (0.25 seconds)
Seeding: UsersTableSeeder

ErrorException : Trying to get property 'id' of non-object

at /Applications/MAMP/htdocs/survey-backend/vendor/bpocallaghan/titan/app/Models/Traits/UserRoles.php:61
57| public function attachRole($roleSlug)
58| {
59| // add dealer role to user
60| $role = Role::where('keyword', $roleSlug)->first();

61| $this->roles()->attach([$role->id]);
62|
63| return $this->roles;
64| }

Slack

Hi Guys and Gals
I figured this is the fastest way to communicate to all parties interested.

Just want to ask if anyone here is interested in a slack channel?
I do not use slack frequently but totally open to the idea, I do however use skype day to day.
Figured maybe if its only 1/2 interested - skype might do for now?

Please share your thoughts.
Happy coding :)

Thanks

install error with php artisan key:generate

Hello,
I am trying to install the admin, but get the following warning.

vagrant@homestead:~/code/lav$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdat ed dependencies. Run update to update them.
Package operations: 100 installs, 0 updates, 0 removals

I don't know how to "update" that, so i continued to the next step.
php artisan key:generate

I get these errors.
PHP Warning: require(/home/vagrant/code/lav/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/code/lav/artisan on line 18

Warning: require(/home/vagrant/code/lav/vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/code/lav/artisan on line 18
PHP Fatal error: require(): Failed opening required '/home/vagrant/code/lav/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/lav/artisan on line 18

Fatal error: require(): Failed opening required '/home/vagrant/code/lav/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/vagrant/code/lav/artisan on line 18

Please advice.
Thank you

npm run dev - bugs

hi
thanks for your repo !! is great !!

after having done
npm run dev
I see these mistakes

screenshot from 2017-08-21 13-10-35

Missing migrations

First, thanks for putting this test project on Github.

It seems like there are migration missing. After following, and completed the installation, when I try to access the admin/blog/categories or admin/blog/articles I get SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel_as.articles' doesn't exist

Any other steps that are not described in the documentation?

Thanks

Controller not exist on new setup

I just cloned and setting up in local. the setup went good and the website is good. but when trying to login or register it return error as below.

ReflectionException (-1)
Class Bpocallaghan\Titan\Http\Controllers\Auth\RegisterController does not exist

Class Bpocallaghan\Titan\Http\Controllers\Auth\LoginController does not exist
ReflectionException
C:\xampp\htdocs\las\vendor\laravel\framework\src\Illuminate\Container\Container.php
779
[object Object]

please someone help me if anything i missed out during the setup. maybe i need to add spmething in config folder?

CSRF token exception

Hello again. I forgot to mention about following problem I have encountered on some pages:

The page has expired due to inactivity.

Please refresh and try again.

specifically it has triggered on banners page when user hits the save button which redirect to /admin/general/banners, I just took the screenshot below:

2017-11-28_16-52-20

extra : client console error message:

Failed to load resource: the server responded with a status of 419 (unknown status)

It might be CSRF token exception, I'm not sure.

Best regards

FatalErrorException Call to a member function getParentsAndYou() on null

[2017-07-10 09:43:44] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function getUrlParentsAndYou() on null' in C:\xampp\htdocs\laravel-admin-starter\vendor\bpocallaghan\titan\src\Controllers\TitanWebsiteController.php:138
Stack trace:
#0 {main}
[2017-07-10 09:44:00] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function getParentsAndYou() on null' in C:\xampp\htdocs\laravel-admin-starter\vendor\bpocallaghan\titan\src\Controllers\TitanWebsiteController.php:135
Stack trace:
#0 {main}

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.