rocket-firm / rdrive-core
Rocket Drive - Laravel Admin Package
Requires
- ext-json: *
- arcanedev/laravel-lang: ^6.0
- astrotomic/laravel-translatable: ^11.0
- doctrine/dbal: ^2.9
- laravel/passport: ^7.2
- spatie/eloquent-sortable: ^3.4
- spatie/laravel-permission: ^2.37
- spatie/laravel-translation-loader: ^2.3
- sven/flex-env: ^2.1
Requires (Dev)
- laravel/framework: ~5.8.0
- phpunit/phpunit: ^7.5|^8.0
- dev-master
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/lodash-es-4.17.21
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.7
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ua-parser-js-0.7.28
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/dot-prop-4.2.1
- dev-dependabot/npm_and_yarn/mixin-deep-1.3.2
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
- dev-dependabot/npm_and_yarn/eslint-utils-1.4.3
- dev-develop
- dev-formModels
- dev-crudModels
- dev-authorization
This package is auto-updated.
Last update: 2024-11-11 05:51:09 UTC
README
Installation
After creating your new Laravel application you can include the Rdrive package with the following command:
composer require rocket-firm/rdrive-core
Next make sure to create a new database and add your database credentials to your .env file, you will also want to add your application URL in the APP_URL
variable:
APP_URL=http://project.test DB_DATABASE=db_project DB_USERNAME=root DB_PASSWORD=
In config/app.php
(Laravel) you should replace Laravel's translation service provider
Illuminate\Translation\TranslationServiceProvider::class,
by the one included in this package:
Spatie\TranslationLoader\TranslationServiceProvider::class,
Finally, we can install Rdrive. You can choose to install Rdrive with dummy data or without the dummy data. The dummy data will include 1 admin account (if no users already exist), 1 demo page, 4 demo posts, 2 categories and 7 settings.
Install without dummy data
php artisan rdrive:install php artisan migrate
Install with dummy data
php artisan rdrive:install --with-dummy php artisan migrate composer dump-autoload php artisan db:seed --class=RdriveDummyDatabaseSeeder
Then add these dummy routes in your api.php
file:
Route::apiResources(['countries' => 'API\Admin\CountryController']);
And we're all good to go!
Start up a local development server with php artisan serve And, visit the URL http://localhost:8000/admin in your browser.
If you installed with the dummy data, a user has been created for you with the following login credentials:
email: admin@admin.com
password: 123456