Giter Site home page Giter Site logo

Comments (18)

vyuldashev avatar vyuldashev commented on September 27, 2024 1

@afsardo Administration Interface for current database

from voyager.

vyuldashev avatar vyuldashev commented on September 27, 2024 1

@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.

vyuldashev avatar vyuldashev commented on September 27, 2024 1

@afsardo Already started to work on. I also suggest to use PSR-2.

from voyager.

marktopper avatar marktopper commented on September 27, 2024 1

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.

adriaanzon avatar adriaanzon commented on September 27, 2024

This would also make it easy to add a prefix to the table names (#64)

from voyager.

vyuldashev avatar vyuldashev commented on September 27, 2024

@adriaanzon

Yeah, but may be I want Voyager be in one database and my main project in another. Even separate MySQL instances.

from voyager.

afsardo avatar afsardo commented on September 27, 2024

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.

vyuldashev avatar vyuldashev commented on September 27, 2024

@afsardo No I manage my own application. And I use micro-service architecture. So API, Web and other services are separated.

from voyager.

afsardo avatar afsardo commented on September 27, 2024

So do you need Voyager for what? :X Sorry having a hard time understanding it.

from voyager.

afsardo avatar afsardo commented on September 27, 2024

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.

afsardo avatar afsardo commented on September 27, 2024

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.

afsardo avatar afsardo commented on September 27, 2024

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.

vyuldashev avatar vyuldashev commented on September 27, 2024

@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.

afsardo avatar afsardo commented on September 27, 2024

I think it looks easy and clean ^^ Great Job!

from voyager.

marktopper avatar marktopper commented on September 27, 2024

Are you still working on this @vladimir-yuldashev?

from voyager.

marktopper avatar marktopper commented on September 27, 2024

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.

fbuccioni avatar fbuccioni commented on September 27, 2024

I add this functionality in my repository and awaiting pull request #2175 if something need it.

from voyager.

github-actions avatar github-actions commented on September 27, 2024

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)

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.