Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ sequel Public
forked from Protoqol/Prequel

Prequel for Laravel. Clear and concise database management. Unfortunately, not actively maintained due to time constraints.

License

Notifications You must be signed in to change notification settings

akrista/sequel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

424 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sequel

Packagist Version Join our Discord Follow Protoqol on Twitter

What is Sequel exactly?

Sequel is meant to be a database management tool for Laravel to replace the need for separate standalone database tools like phpMyAdmin, Sequel Pro or MySQL Workbench. With its (hopefully) clear and concise UI, Sequel is to be a modern and lightweight database browser/tool ready for the web of the future. Sequel's design is purposefully based on that of Laravel Telescope because (web-)developers today have enough to learn and master already, so let's help eachother out and make sure to not add anything virtually useless to that huge pile of knowledge.

Sequel Screenshot

Clear and concise database management

Want to help keep open-source sustainable?

You can help by contributing to the code or donating using the button below! Both are highly appreciated and contribute directly to keeping open-source free and sustainable!

Donate

Installation

To install follow the instructions below.
$ composer require protoqol/
$ php artisan :install
When installation and publishing is done navigate to / in your browser to see Sequel in action!

Updating

$ php artisan :update

Issues, bugs and feature requests can be reported here!

Configuration

You might have noticed that, while publishing a config file appeared under config/.php. That configuration file looks something like this.

Note that you can define SEQUEL_ENABLED in your .env file.

<?php

    [

        /*
        |--------------------------------------------------------------------------
        | Sequel Master Switch : boolean
        |--------------------------------------------------------------------------
        |
        | Manually disable/enable Sequel, if in production Sequel will always be
        | disabled. Reason being that nobody should ever be able to directly look
        | inside your database besides you or your dev team (obviously).
        |
        */

        'enabled' => env('SEQUEL_ENABLED', true),


        /*
        |--------------------------------------------------------------------------
        | Sequel Locale : string
        |--------------------------------------------------------------------------
        |
        | Choose what language Sequel should display in.
        |
        */

        'locale' => env('APP_LOCALE', 'en'),


        /*
        |--------------------------------------------------------------------------
        | Sequel Path
        |--------------------------------------------------------------------------
        |
        | The path where Sequel will be residing. Note that this does not affect
        | Sequel API routes.
        |
        */

        'path' => '',


        /*
        |--------------------------------------------------------------------------
        | Sequel base url
        |--------------------------------------------------------------------------
        |
        | When present, this URL will be used instead of the default url.
        | This should be a complete url excluding tailing slash.
        | Example: 'https://protoqol.nl'
        |
        */
        'baseUrl' => null,
    

        /*
        |--------------------------------------------------------------------------
        | Laravel asset generation suffix and namespace definition
        |--------------------------------------------------------------------------
        |
        | Here you can define your preferred asset suffixes and directory/namespaces.
        | Separate with a double backwards slash to define namespace and directory
        | location. Everything after the last '\\' will be treated as a suffix.
        | Note that the backslash needs to be escaped with an extra backslash
        |
        | For example
        |
        |  Configuration
        |     'suffixes' => [
        |           'model'  => 'Models\\Model',
        |           'seeder' => 'MyMadeUpSeederSuffix'
        |       ]
        |
        |  When generating for `users` table
        |     (directory) app/models/UserModel.php
        |     (qualified class) App\Models\UserModel
        |     (directory) database/seeds/UserMyMadeUpSeederSuffix.php
        |
        */

        'suffixes' => [
            'model'      => 'Models\\',
            'seeder'     => 'Seeder',
            'factory'    => 'Factory',
            'controller' => 'Controller',
            'resource'   => 'Resource',
        ],


        /*
        |--------------------------------------------------------------------------
        | Sequel Database Configuration : array
        |--------------------------------------------------------------------------
        |
        | This enables you to fully configure your database connection for Sequel.
        |
        */

        'database' => [
            'connection' => env('DB_CONNECTION', 'mysql'),
            'host'       => env('DB_HOST', '127.0.0.1'),
            'port'       => env('DB_PORT', '3306'),
            'database'   => env('DB_DATABASE', 'homestead'),
            'username'   => env('DB_USERNAME', 'homestead'),
            'password'   => env('DB_PASSWORD', 'secret'),
	    'socket' 	 => env('DB_SOCKET', ''),
        ],


        /*
        |--------------------------------------------------------------------------
        | Sequel ignored databases and tables : array
        |--------------------------------------------------------------------------
        | Databases and tables that will be ignored during database discovery.
        |
        | Using 'mysql' => ['foo']  ignores only the mysql.foo table.
        | Using 'mysql' => ['*'] ignores the entire mysql database.
        |
        */

        'ignored' => [
            // 'information_schema'  => ['*'],
            // 'sys'                 => ['*'],
            // 'performance_schema'  => ['*'],
            // 'mysql'               => ['*'],
            '#mysql50#lost+found' => ['*'],
        ],


        /*
        |--------------------------------------------------------------------------
        | Sequel pagination per page : integer
        |--------------------------------------------------------------------------
        |
        | When Sequel retrieves paginated information, this is the number of
        | records that will be in each page.
        |
        */

        'pagination' => 100,


        /*
        |--------------------------------------------------------------------------
        | Sequel middleware : array
        |--------------------------------------------------------------------------
        |
        | Define custom middleware for Sequel to use.
        |
        | Ex. 'web', Protoqol\Sequel\Http\Middleware\Authorised::class
        |
        */

        'middleware' => [
            Protoqol\Sequel\Http\Middleware\Authorised::class,
        ],
    ];

Sequel Screenshot

Clear and concise database management

Contributing

See Contributing to see how you can contribute to Sequel!

Contributors

License

Sequel is licensed under the MIT License. Please see License File for more information.

About

Prequel for Laravel. Clear and concise database management. Unfortunately, not actively maintained due to time constraints.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.5%
  • PHP 4.5%
  • Vue 4.2%
  • Other 0.8%