https://twill.io logo
Join Discord
Powered by
# ❓questions
  • u

    user

    07/07/2021, 12:41 PM
    Hello, is this group active?
  • u

    user

    07/07/2021, 12:42 PM
    Im also trying to set up a multi-site using https://spectrum.chat/twill/tips-and-tricks/multi-tenant-setup~85f81567-0570-4989-9d63-e59588aed6c0 - but its not working. Some explanations are not clear... for example, file name and path of the middleware files, etc. Can anyone point me to the updated tutorial or article for setting up the Twill and Multisite... Thanks in advance.
  • i

    ifox

    07/07/2021, 12:46 PM
    Hi @User the group is very active, see above, but you can't really expect anyone to answer at your convenience. Are you entering correct credentials? Did you check the network to see why you are redirected?
  • i

    ifox

    07/07/2021, 12:47 PM
    there are no updated tutorial for multisite, but happy to help and build one as we go through your issues
  • u

    user

    07/07/2021, 12:50 PM
    Thanks, ifox.... I followed the Twill docs to the T. All worked fine. So I entered the admin email and password - no error, but it keeps showing the same page
  • u

    user

    07/07/2021, 12:51 PM
    when i enter wrong password, it shows check credentials.. so it's a barebone or boiler plate set up.. do I need to add roles or permissions before anything can be seen.... only twill_users table has 1 super admin user and laravel users table does not have any data... does that matter?
  • i

    ifox

    07/07/2021, 12:55 PM
    1 superadmin user in twill_users is what you should have, all good
  • i

    ifox

    07/07/2021, 12:56 PM
    did you try to create another one to make sure you're not entering a wrong password?
    php artisan twill:superadmin
  • u

    user

    07/07/2021, 12:57 PM
    I double checked the password... it is 100% correct..
  • u

    user

    07/07/2021, 12:57 PM
    I have deleted entire folder.. now setting up a fresh installation following Twill installation steps
  • u

    user

    07/07/2021, 12:58 PM
    just did "composer create-project --prefer-dist laravel/laravel townhouse"
  • u

    user

    07/07/2021, 1:05 PM
    Completed: composer require area17/twill:"^2.0" --with-all-dependencies
  • u

    user

    07/07/2021, 1:06 PM
    successfully ran: php artisan twill:install
  • u

    user

    07/07/2021, 1:07 PM
    Configured: APP_URL=townhouse.test ADMIN_APP_URL=townhouse.test ADMIN_APP_PATH=admin
  • u

    user

    07/07/2021, 1:07 PM
    Super Admin - Your account has been created.
  • u

    user

    07/07/2021, 1:08 PM
    Accessing: http://townhouse.test:8080/admin/login
  • i

    ifox

    07/07/2021, 1:08 PM
    ok yeah all that looks good
  • u

    user

    07/07/2021, 1:08 PM
    so far so good... got the login page
  • u

    user

    07/07/2021, 1:08 PM
    logged in... using email n password.. now for a change, it shows me : 419 PAGE EXPIRED
  • u

    user

    07/07/2021, 1:09 PM
    Before it was just throwing same login page.. now it is different
  • i

    ifox

    07/07/2021, 1:09 PM
    clear your cookies. is your APP_KEY set?
  • u

    user

    07/07/2021, 1:09 PM
    APP_KEY set automatically..
  • i

    ifox

    07/07/2021, 1:09 PM
    yeah I know right just trying to understand what might be going wrong
  • u

    user

    07/07/2021, 1:09 PM
    @php artisan key:generate --ansi Application key set successfully.
  • u

    user

    07/07/2021, 1:11 PM
    It's a mac - have done many laravel, no issues... php 7.3 /
  • u

    user

    07/07/2021, 1:11 PM
    "require": { "php": "^7.3|^8.0", "area17/twill": "^2.0", "fideloper/proxy": "^4.4", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.40", "laravel/tinker": "^2.5" },
  • i

    ifox

    07/07/2021, 1:11 PM
    did you try clearing cookies for that domain? You might have had another Laravel app running there sending a wrong csrf token or something
  • u

    user

    07/07/2021, 1:12 PM
    php artisan view:clear php artisan route:cache php artisan config:clear
  • u

    user

    07/07/2021, 1:12 PM
    Did all, still same issue
  • u

    user

    07/07/2021, 1:14 PM
    I am really super excited about Twill... esp. the block editor, etc... and if it multisite - 1 code base multiple dbs possible, then its just amazing stuff.... but now i am stuck before even starting....
1...505152...484Latest