Comments (18)
@afsardo Administration Interface for current database
from voyager.
@afsardo I think it would not be so hard. I can spend time and create pull request for this. It's just separating the entities. Voyager looks like Blog system with Admin interface right now, but not like Admin Interface.
from voyager.
@afsardo Already started to work on. I also suggest to use PSR-2.
from voyager.
My idea to get this to work is quite simply, to enable overwriting the models of Voyager, and then a user may add the protected $connection = 'voyager';
to the models they wish to separate from the application database.
from voyager.
This would also make it easy to add a prefix to the table names (#64)
from voyager.
Yeah, but may be I want Voyager be in one database and my main project in another. Even separate MySQL instances.
from voyager.
But Voyager is an admin panel to manage your application if you have separate databases are you managing a different app? It needs access to your app data.
from voyager.
@afsardo No I manage my own application. And I use micro-service architecture. So API, Web and other services are separated.
from voyager.
So do you need Voyager for what? :X Sorry having a hard time understanding it.
from voyager.
Hum what you mean is using Voyager with access to your app database, but all things db related voyager needs to work are stored in a diff db? I see..
I think that is a "whole" new product, one i am actually working on, generating a Backend for API.
Let's see the Maintainers opinion on it.
from voyager.
Hum maybe you are right ;) Hope you do it! That would be an awesome addition and really powerful.
Any help or "lack of ideas" shoot me a message we can try and get a solution.
from voyager.
Completely agree with you ;) In Sublime i have an auto format part of the build process, need to install it in Visual Code too.
from voyager.
@afsardo what do you think about this:
// This is for Voyager
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
// This is for Entities aka Main database
'main' => [
'driver' => 'mysql',
'host' => env('DB_MAIN_HOST', 'localhost'),
'port' => env('DB_MAIN_PORT', '3306'),
'database' => env('DB_MAIN_DATABASE', 'forge'),
'username' => env('DB_MAIN_USERNAME', 'forge'),
'password' => env('DB_MAIN_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
from voyager.
I think it looks easy and clean ^^ Great Job!
from voyager.
Are you still working on this @vladimir-yuldashev?
from voyager.
Closing this since it will become possible to overwrite a Voyager model using in v0.11
.
Then this can be done adding
protected $connection = 'voyager';
However, we have not yet figured out the best way to enable overwriting of the Voyager models. You can take a look at the discussion for this and let us know what solution you would prefer.
Reference #693
from voyager.
I add this functionality in my repository and awaiting pull request #2175 if something need it.
from voyager.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
from voyager.
Related Issues (20)
- Unsupported image type image/heic. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files HOT 3
- media library's one of the folders is not loading HOT 3
- custom action not found on cpanel HOT 1
- How Authorize Works in Voyager and add Custom Roles? HOT 1
- Is there any way to upload the images to cloudinary or any cloud service HOT 6
- Migrate from Google Sign-In, for conection in Analytcs
- Unable to add BREAD to table HOT 5
- email_verified_at column reset to NULL HOT 1
- Laravel 11 Support HOT 12
- @can feature on menu items based on permissions
- Passing variable to view
- My Laravel Voyager admin redirect back to login page after successful login, but this issue occurs on initial login. After that it works fine.
- google analytics deprecated HOT 1
- Select Dropdown using enum->value instead of enum?
- Sometimes get error 419 page expire and website is slow
- Route [voyager.posts.index] not defined
- Server side pagination page jump issue
- Partial translation with validation rule required_if
- Laravel 11 HOT 2
- "Tags" as a formfield
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voyager.