Giter Site home page Giter Site logo

demo's Introduction




Website | Documentation | Add-ons | Pricing | Services | Stack Overflow | Reddit | Blog | Newsletter

Backpack\Demo

Laravel BackPack's demo, which includes all Backpack packages.

Security updates and breaking changes

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

image

How to Use

You can find the demo online at demo.backpackforlaravel.com, and play around. But some functionality is disabled, for security reasons (uploads, edits to users). If you want to run the demo without restrictions and/or make code edits and see how they're applied, you can install it on your own machine. See below.

Install

IMPORTANT. This demo requires ALL our premium packages. If you do not have access to one of them, you will not be able to install it. To install this demo yourself, make sure you've purchased all our premium add-ons individually, or our Everything bundle - https://backpackforlaravel.com/pricing

  1. Run in your terminal:
git clone https://github.com/Laravel-Backpack/demo.git backpack-demo
  1. Set your database information in your .env file (use the .env.example as an example);

  2. Make sure the APP_URL in your .env file is correctly pointing to the URL you use to access your application in the browser, for example: http:127.0.0.1:8000 or http://something.test

  3. Run in your backpack-demo folder:

composer install
php artisan key:generate
php artisan migrate
php artisan db:seed

Usage

  1. Your admin panel is available at http://localhost/backpack-demo/admin
  2. Login with email [email protected], password admin
  3. [optional] You can register a different account, to check out the process and see your gravatar inside the admin panel.
  4. By default, registration is open only in your local environment. Check out config/backpack/base.php to change this and other preferences.

Note: Depending on your configuration you may need to define a site within NGINX or Apache; Your URL domain may change from localhost to what you have defined.

Example generated CRUD interface

If using docker

This package provides an example docker-compose.yml to launch your database and web server easily

composer install
cp .env.example .env
php artisan key:generate

Use these parameters in your .env file

APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=backpackdemo
DB_USERNAME=root
DB_PASSWORD=asdf

Launch docker

docker-compose up -d

Create your database with following command

docker-compose exec db mysql -u root -pasdf -e "create database if not exists backpackdemo;"

Migrate and seed

php artisan migrate --seed

You should see the demo in your browser now

http://localhost/admin

To stop the server simply run

docker-compose down

Note:

In docker, to connect to your database from your GUI use 127.0.0.1 as your database host, instead of localhost

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Credits

License

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

Hire us

We've spend more than 10.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us - let's see if we can work together.

demo's People

Contributors

abbyjanke avatar claudsonm avatar dependabot-preview[bot] avatar dependabot[bot] avatar eduardoarandah avatar enimiste avatar jcastroa87 avatar karandatwani92 avatar laravel-shift avatar lloy0076 avatar maurohmartinez avatar mgralikowski avatar munjaldevelopment avatar musheabdulhakim avatar mustafa-online avatar promatik avatar pxpm avatar selcukcukur avatar siberfx avatar stylecibot avatar tabacitu avatar viktorivanov avatar zachweix avatar ziming 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

demo's Issues

Laravel error when changing anything

Hi

I installed the demo according to the docs at https://laravel-backpack.readme.io/docs/demo.

I run the web server from the folder with php artisan serve.

Whenever I try to change something, e.g. add a menu item I get the error:

BadMethodCallException in Builder.php line 2450:
Call to undefined method Illuminate\Database\Query\Builder::getCastedAttributes()

Full stack:

in Builder.php line 2450
at Builder->__call('getCastedAttributes', array()) in Builder.php line 1473
at Builder->__call('getCastedAttributes', array()) in Model.php line 3561
at Model->__call('getCastedAttributes', array()) in Fields.php line 200
at CrudPanel->decodeJsonCastedAttributes(array('_token' => 'lVOhmMKV6zosPe4F3Ze4ubB3vgansU6nlTC3bUxw', 'name' => 'zxczxc', 'email' => '[email protected]', 'password' => 'asd', 'password_confirmation' => 'asd', 'save_action' => 'save_and_back'), 'create') in Create.php line 22
at CrudPanel->create(array('_token' => 'lVOhmMKV6zosPe4F3Ze4ubB3vgansU6nlTC3bUxw', 'name' => 'zxczxc', 'email' => '[email protected]', 'password' => 'asd', 'password_confirmation' => 'asd', 'save_action' => 'save_and_back')) in UserCrudController.php line 117
at UserCrudController->store(object(UserStoreCrudRequest))
at call_user_func_array(array(object(UserCrudController), 'store'), array(object(UserStoreCrudRequest))) in Controller.php line 55
at Controller->callAction('store', array(object(UserStoreCrudRequest))) in ControllerDispatcher.php line 44
at ControllerDispatcher->dispatch(object(Route), object(UserCrudController), 'store') in Route.php line 189
at Route->runController() in Route.php line 144
at Route->run(object(Request)) in Router.php line 653
at Router->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CrudController.php line 41
at CrudController->Backpack\CRUD\app\Http\Controllers\{closure}(object(Request), object(Closure)) in Pipeline.php line 120
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Admin.php line 29
at Admin->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in VerifyCsrfToken.php line 65
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Router.php line 655
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 629
at Router->dispatchToRoute(object(Request)) in Router.php line 607
at Router->dispatch(object(Request)) in Kernel.php line 268
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 150
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
at Kernel->handle(object(Request)) in index.php line 52
at require_once('/Users/xxx/Desktop/admin-test/backpack-demo/public/index.php') in server.php line 19

widget

Do we have widget package in demo backpack

Custom dashboard not working

I've added the following to my routes.php file:

Route::group([
    'prefix'     => config('backpack.base.route_prefix', 'admin')
], function () {
    Route::get('dashboard', 'DashboardController@overview');
});

I've also changed the order of my providers inside config/app.php to the following:

Backpack\Base\BaseServiceProvider::class,
App\Providers\RouteServiceProvider::class,

Yet it still appears to be showing me the same dashboard? I can't seem to get the dashboard to become a handler yet it works if I do something like:

Route::get('test', 'TestController@overview');

404 * Page not found

I have installed the Demo Panel with all Sites on my (sub.domain.tld), if i create a new Frontend page i get a Error 404 on the new Page :(

env file is missing

please fill up the changes in the .env file as,

APP_ENV=local
APP_DEBUG=true
APP_KEY=1CaND3OKKvOGSBAlCg6IyrRmTQWwZjOO

DB_HOST = localhost
DB_DATABASE = YOUR_DATABASE_NAME
DB_USERNAME = root
DB_PASSWORD =

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null

NOTE: Only change the database name that you have created.

installation fails on laravel 5.3

Hi,
my third attempt to install on an Laravel Homestead Vagrant VM failed today.
as to my knowledge Homestead is up to date, Laravel certainly is (ran composer update before install).
Same error happenes when I use git clone install after composer install

and when I follow https://laravel-backpack.readme.io/docs/installation-on-laravel-53

Any ideas?


Error log:
Generating autoload files

Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize
PHP Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Dotenv values containing spaces must be su rrounded by quotes. in /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php:228
Stack trace:
#0 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(97): Dotenv\Loader->sanitiseVariab leValue('DB_PASSWORD', '-----.')
#1 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(330): Dotenv\Loader->normaliseEnvi ronmentVariable('DB_PASSWORD', ----')
#2 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(58): Dotenv\Loader->setEnvironment Variable('DB_PASSWORD=----')
#3 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Dotenv.php(91): Dotenv\Loader->load()
#4 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Dotenv.php(48): Dotenv\Dotenv->loadData()
#5 /home/vagrant/web/backpack-demo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/DetectEnviro nment.php(24): Dotenv\Dotenv->load()
#6 /home/vagrant/we in /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php on line 228

Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Dotenv values containing spaces must be surroun ded by quotes. in /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php:228
Stack trace:
#0 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(97): Dotenv\Loader->sanitiseVariab leValue('DB_PASSWORD', '----')
#1 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(330): Dotenv\Loader->normaliseEnvi ronmentVariable('DB_PASSWORD', '----')
#2 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php(58): Dotenv\Loader->setEnvironment Variable('DB_PASSWORD=----')
#3 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Dotenv.php(91): Dotenv\Loader->load()
#4 /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Dotenv.php(48): Dotenv\Dotenv->loadData()
#5 /home/vagrant/web/backpack-demo/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/DetectEnviro nment.php(24): Dotenv\Dotenv->load()
#6 /home/vagrant/we in /home/vagrant/web/backpack-demo/vendor/vlucas/phpdotenv/src/Loader.php on line 228
Script php artisan optimize handling the post-install-cmd event returned with error code 255

widget

hi ,i am looking for widget in dashboard, i dont know how to add
thank you

Error message from datatables when opening settings menu

Bug report

What I did:

Click on Settings menu

What I expected to happen:

List all settings and manage theme

What happened:

Get the message attached below

What I've already tried to fix it:

None
capture

Backpack, Laravel, PHP, DB version:

Permission denied on 'Composer install'

I've cloned the backpack demo repo, created a database and created a .env file with the correct database credentials. But when I run 'composer install' I get a connection refused error, see attachment... How can I fix this? My credentials are correct... Can you point me to the right direction?

screen shot 2016-10-26 at 10 52 55

File manager error

When I go to File manager, I get the following error. Do I need to config anything with elfinder?
I have created /public/files directory.

file

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

Bug report

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

LangFileManager - the same proplem

Screens -https://yadi.sk/d/6nFNfLC43PkWEg

What I did:

Install Demo https://laravel-backpack.readme.io/docs/demo
Install LangFileManager https://github.com/Laravel-Backpack/langfilemanager

Backpack, Laravel, PHP, DB version:

Last ver. + Laravel Homestead fresh install (MariaDB)
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli)
mysql Ver 15.1 Distrib 10.1.28-MariaDB, for debian-linux-gnu (x86_64)

Upload img url problem

Hi I have problem with backslash in url img in filemanager.
image
How change backslash \ to slash / ?

Demo not working

Oke, I may sound like a noob but I am running into a next issue. I have installed everything succesfully and using Mamp Pro I've assigned a local url refering to the document root. When I navigate to that url I get an error message 'You don't have permission to acces / on this server.'

What am I doing wrong or missing?

Cant get my CRUD to work

Hi,

Tried the Demo package which works fine. But on generating my own models + CRUD as per instructions given on the site I am not able to access the Models CRUD pages.

As shown in the Readme, I have place the controllers in the
backpack-demo\app\Http\Controllers\Admin path, bu t i see that the CRUDs in the demo package are placed in the
backpack-demo\vendor\backpack\menucrud\src\app\Http\Controllers\Admin ( MenuOps)
backpack-demo is the folder into which i have created the laravel app.

Even the image put up in the readme shows the same path that i have used.

This is my routes file backpack-demo\app\Http\routes.php
Route::get('/', function () {
return view('welcome');
});

Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
// Backpack\MenuCRUD
CRUD::resource('menu-item', 'MenuItemCrudController');
CRUD::resource('products', 'ProductsCrudController');
CRUD::resource('locations', 'LocationsCrudController');
CRUD::resource('zones', 'ZonesCrudController');
CRUD::resource('agents', 'AgentsCrudController');
});

Also I keep getting a VerifyCSRFToken issue

Can you help me with these two issues. Where am i making a mistake.

Thanks

Errors - set up frontend official Bulma preset for Laravel Mix

Bug report

ะ lot of npm mistakes set up official Bulma preset - https://github.com/laravel-frontend-presets/bulma
Impossible to use Laravel Mix w/th Bulma preset

npm WARN && npm ERR! detected
Console output - npmWarErr.txt -- >https://yadi.sk/i/7uaMwlxs3PkeXp

What I did:

Set up official Bulma preset - https://github.com/laravel-frontend-presets/bulma

What I expected to happen:

ะ lot of npm mistakes.
Impossible to use Laravel Mix w/th Bulma preset

What I've already tried to fix it:

Try to update npm packages from error log - did not help

Backpack, Laravel, PHP, DB version:

Last ver. + Laravel Homestead fresh install (MariaDB)
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli)
mysql Ver 15.1 Distrib 10.1.28-MariaDB, for debian-linux-gnu (x86_64)

node -v v6.12.0
npm -v 5.5.1

Demo erros pos installation

Sorry by ignorance , I'm learning Laravel . I've installed the backpack-demo and I do not know how see articles in frontend. I've tryed rest url format and nothing. Trying to view pages by slug (button "open" in backend page list) produces error 404. Menu Advanced > Settings > " Contact form CC field" and " Contact form email address" produce error "ErrorException in Fields.php line28 : Undefined index : name".
I haven't configured virtual host and mod-rewrite in Apache to backpack-demo project, but backend seems ok.
Thanks .

where is the controllers and routes defined ?

Hi I just installed the demo with laravel 5.3 and checking the dashboard as it is supposed to be.
But I am wonder that there is no controller is defined for any module like admin dashboard and/or for any sub module like menu , article etc. also there is no routes definition for the views and controllers.

Can anyone please guide how I can start developing?

Thank in advance
Md Aman Ullah

laravel_session keeps changing values when refreshing

Thanks for making such a wonderful package.
I noticed that when after login and I observe the cookie value of laravel_session key, it keep changing everytime i refresh the page, is that normal? though things are going on well. Sorry if this question is too trivial to be a issue.

npm WARN npm ERR!

Bug report

npm WARN && npm ERR! detected
Console output - npmWarErr.txt -- > https://yadi.sk/i/7uaMwlxs3PkeXp

What I did:

Install Demo https://laravel-backpack.readme.io/docs/demo
Install LangFileManager https://github.com/Laravel-Backpack/langfilemanager

Backpack, Laravel, PHP, DB version:

Last ver. + Laravel Homestead fresh install (MariaDB)
PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli)
mysql Ver 15.1 Distrib 10.1.28-MariaDB, for debian-linux-gnu (x86_64)

node -v v6.12.0
npm -v 5.5.1

Menu items not showing

Bug report

What I did:

I created new menu items with external links.

screenshot from 2018-01-10 09-37-24

What I expected to happen:

I expect to see them somewhere on sidebar menu.

What happened:

I didn't see them anywhere.

screenshot from 2018-01-10 09-38-57

What I've already tried to fix it:

I read the MenuCRUD documentation and realized that in demo project, there's no model nether controller relative to that project.

Should I put them on my project? Shouldn't that files already be on the demo project?

Backpack, Laravel, PHP, DB version:

0.8.2, 5.5.22, 7.1.12, 5.7.20

PageCrudController does not exist

Hi,

I have the current issue:

I have followed the instructions for the demo install.
Namely:

$ git clone https://github.com/Laravel-Backpack/demo.git backpack-demo

The fixed the .env with the db info.

$ composer install
$ php artisan key:generate
$ php artisan migrate
$ php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder"

Once this was done - I tried to get
MYURL/backback-demo/public/admin/register
or
MYURL/backback-demo/public/admin/

But I would get 404 each time.

Checking open issues - I read that commenting out the Auth::routes(); in web.php - might

well... it didn't

when I run php artisan route:list, I get

[ReflectionException]                                                                    
    Class Backpack\PageManager\App\Http\Controllers\Admin\PageCrudController does not exist  

So I don't know what might have gone wrong.
Is there a bug? Am I really not doing it right... don't know...

CreateRevisionsTable Ambiguous

Bug report

Haven't looked into this currently, but just putting this out there so we can look at it and avoid a bad first user experience.

What I did:

composer install

OR

composer update

What I expected to happen:

install without errors

What happened:

got error

Warning: Ambiguous class resolution, "CreateRevisionsTable" was found in both "$baseDir . '/database/migrations/2013_04_09_062329_create_revisions_table.php" and "/Users/abby/Sites/backpack-demo/vendor/venturecraft/revisionable/src/migrations/2013_04_09_062329_create_revisions_table.php", the first will be used.

Backpack, Laravel, PHP, DB version:

  • Backpack/Base: 0.8.6
  • Backpack/Crud: 3.3.5
  • Laravel/framework: 5.5.x-dev
  • PHP: 7.1.7

How to override admin-middleware

Hi, I'm new to laravel. Thanks for your Demo project which helped a lot. Plese help me to override the backpack's Admin Middleware , to modify the conditions in handle() method.
Thanks

Resolved:
Just created new middleware called it "newadmin" and replaced middleware -"admin" with "newadmin" in routes.php

error when migrate

 [Illuminate\Database\QueryException]
 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error i
 n your SQL syntax; check the manual that corresponds to your MariaDB server
  version for the right syntax to use near 'json not null, `description` jso
 n null, `details` json null, `features` json nul' at line 1 (SQL: create ta
 ble `products` (`id` int unsigned not null auto_increment primary key, `nam
 e` json not null, `description` json null, `details` json null, `features`
 json null, `price` int not null, `category_id` int not null, `extras` json
 null, `created_at` timestamp null, `updated_at` timestamp null) default cha
 racter set utf8 collate utf8_unicode_ci)

please help

Simple filter activated by tab script

I have declared a simple filter on one of my lists and I noticed that it is active by default.
After much headache :) I found the following code which seems to make my filter active (on display only).

//layout.blade.php:135
activeTab && activeTab.tab('show');

Details:

        "backpack/base": "^0.7.19",
        "backpack/crud": "^3.2.12",
        {{-- Enable deep link to tab --}}
        var activeTab = $('[href="' + location.hash.replace("#", "#tab_") + '"]');
        activeTab && activeTab.tab('show');
        $('.nav-tabs a').on('shown.bs.tab', function (e) {
            location.hash = e.target.hash.replace("#tab_", "#");
        });

Undefined variable: saveAction during the Edit of a setting

Undefined variable: saveAction (View: /home/mgazelle/sites/backpack-demo/vendor/backpack/crud/src/resources/views/inc/form_save_buttons.blade.php) (View: /home/mgazelle/sites/backpack-demo/vendor/backpack/crud/src/resources/views/inc/form_save_buttons.blade.php)

seeding in install step 3 failed....

Hi, thanks for this wonderful convenient package for us, during installation step 3, when I type comand
$ php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder"

It then show nothing , and no data is generated in the database? Could it be something wrong here?

besides: I ran the admin demo site well~

Bug "Unable to get property 'innerHTML' of undefined or null reference" on Monsters page

Bug report

What I did:

List all monsters. Then i clicked on Copy|Excel|Csv|Pdf buttons

What I expected to happen:

Export excel
Export csv
...

What happened:

Nothing.
But on my browser console i had this error message : Unable to get property 'innerHTML' of undefined or null reference dataTables.buttons.min.js (34,22)

What I've already tried to fix it:

None

Backpack, Laravel, PHP, DB version:

"php": ">=7.0",
"laravel/framework": "5.5.*",
"backpack/base": "^0.8.0",
"backpack/crud": "^3.3.0",
"backpack/backupmanager": "^1.1",
"backpack/logmanager": "^2.3",
"backpack/settings": "^2.0",
"backpack/pagemanager": "^1.1",
"backpack/MenuCRUD": "^1.0",
"backpack/newscrud": "^2.1",
"backpack/permissionmanager": "^2.1"

Cannot get demo up and running with MAMP

Using MAMP with composer.phar, laravel and backpack-demo inside htdocs. When I try to run composer install to backback-demo folder I get the following:

`
...
Writing lock file
Generating autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize

[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000] [2002] No such file or directory

[PDOException]
SQLSTATE[HY000] [2002] No such file or directory

Script php artisan optimize handling the post-update-cmd event returned with error code 1
`

Any ideas what I can do? I have attempted many times with different MySQL ports (i.e. 8889, 3306) and with different db hostnames (i.e. localhost, 127.0.0.1). MAMP PHP version set to 5.6.27 but active version is 5.6.33 and MAMP PHP cache setting is set to off. Here is my current .env file code:

`
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

`
Anything else I can give you to help me solve? I really don't know if it's a problem with my environment or with Backpack. Backback is something I would definitely like to work with for an up and coming project and perhaps further into the future. Good job on it!! ;))

Getting some migration errors

Hi I just installed the demo with laravel 5.3 and while migrating encountered the follwing errors

[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "categories" add column "slug" varchar not null)

[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL

[PDOException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL

When saving a new Page

BadMethodCallException in Builder.php line 2450:
Call to undefined method Illuminate\Database\Query\Builder::getCastedAttributes()

Error when runing php artisan make:migration:schema

Bug report and information

What I did:

php artisan make:migration:schema create_tags_table --model=0 --schema="name:string:unique"

What I expected to happen:

Execution without errors

What happened:

[ReflectionException] Method Laracasts\Generators\Commands\MigrationMakeCommand::handle() does not exist

What I've already tried to fix it:

The issu is related to the laracasts/Laravel-5-Generators-Extended package that those not implements handle function in its console commande. And this demo project was based on Laravel 5.5 that requires the handle function instead of fire.
For that i sent a pull request to the Jeffery
laracasts/Laravel-5-Generators-Extended#143

Backpack, Laravel, PHP, DB version:

Backup only db and not app source code as expected by config file

Bug report

What I did:

Click on Create new backup

What I expected to happen:

Backup Database and app files as defined by the config file

What happened:

When i downloaded the backup zip i found only homestead.sql

What I've already tried to fix it:

None

Backpack, Laravel, PHP, DB version:

Project created by cloning this demo

Upload to S3

how can move the files to S3 ?, I tried with type=browse, in Cruds controller, its not working. I've given proper credentials in filesystem.php and set default to s3 & fset cloud to s3.

Cannot add a NOT NULL column with default value NULL

I've got the error after I run php artisan migrate
The problem was in

database\migrations\2016_07_24_060017_add_slug_to_categories_table.php
database\migrations\2016_07_24_060101_add_slug_to_tags_table.php

in the string

$table->string('slug')->unique()->after('name');

I added nullable() and it's gone.

Does it happen only for me?

More demo entities, to show off & test all Backpack features

Without unit tests, each Backpack change might break something, and it's very very difficult to see if it does.

I propose creating some new entities in the Demo, which would show off all Backpack features. This should be useful both for demonstration purposes AND for testing. The only downside I see is that people who use the Demo to kickstart their projects (I know there are people, even though we explicitly said not to do that) will have these extra entities in their new projects and need to delete them. Does anybody see another reason this isn't a good idea?

That being said, here's what I have in mind for these entities:

  • Test (has all field types, all column types, seeds for ~10 entries)
  • Product (seeds for ~1 million entries, ajax datatables, buttons, filters, details_row, revisions, export buttons, fake fields, translatable fields)
  • Comment (reordering and nesting, morphTo)

@OwenMelbz , what do you think? Aslo, did I miss any feature :-) ?

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.