Giter VIP home page Giter VIP logo

Comments (8)

munafio avatar munafio commented on May 27, 2024

@dhruv1998 Please can you provide me a details about this error? Where did happen?

from chatify.

dhruv1998 avatar dhruv1998 commented on May 27, 2024

@munafio i got this error in when I try to visit default route. /chatify

from chatify.

munafio avatar munafio commented on May 27, 2024

@dhruv1998 be clear with your question.. Where did it occure? Which file, line!?

from chatify.

dhruv1998 avatar dhruv1998 commented on May 27, 2024

@munafio as per my understanding I am getting this error in routes web.php in line no 15 but I am not getting why it's coming that's why I am looking for a positive response from your side

from chatify.

munafio avatar munafio commented on May 27, 2024

@dhruv1998 Open yourapp/config/chatify.php and check out namespace property,

If you published controllers, so it should be :
App/Http/Controllers/vendor/Chatify
This to make routes' namespace depends on the published controllers not package's conrollers.

or if not, it should be (as default) :
Chatify/Http/Controllers

from chatify.

dhruv1998 avatar dhruv1998 commented on May 27, 2024

@munafio namespace property doesn't exist only in config/chatify.php this my whole chatify.php

`return [

/*
|--------------------------------------------------------------------------
| Messenger app name
|--------------------------------------------------------------------------
|
| This value is the name of the app which is used in the views or elsewhere
| in this app.
|
*/

'name' => env('CHATIFY_NAME', 'Chatify Messenger'),

/*
|--------------------------------------------------------------------------
| Package path
|--------------------------------------------------------------------------
|
| This value is the path of the package or in other meaning, it is the prefix
| of all the registered routes in this package.
|
| e.g. : app.test/chatify
*/

'path' => env('CHATIFY_PATH', 'chatify'),

/*
|--------------------------------------------------------------------------
| Package's web routes middleware
|--------------------------------------------------------------------------
|
| This value is the middleware of all routes registered in this package
| which is by default : auth
|
*/

'middleware' => env('CHATIFY_MIDDLEWARE', 'auth'),

/*
|--------------------------------------------------------------------------
| Pusher API credentials
|--------------------------------------------------------------------------
|
| This array includes all the credentials that required to use pusher API
| with Chatty package, which is used to broadcast events over websockets to
| create a real-time features.
|
*/
'pusher' => [
    'key' => env('PUSHER_APP_KEY'),
    'secret' => env('PUSHER_APP_SECRET'),
    'app_id' => env('PUSHER_APP_ID'),
    'options' => [
        'cluster' => env('PUSHER_APP_CLUSTER'),
        'encrypted' => false,
    ],
],

/*
|--------------------------------------------------------------------------
| User Avatar
|--------------------------------------------------------------------------
|
| This is the user's avatar setting that includes :
| [folder]  which is the default folder name to upload and get
|           user's avatar from.
| [default] which is the default avatar file name for users stored
|           in database.
|
*/
'user_avatar' => [
    'folder' => 'users-avatar',
    'default' => 'avatar.png',
],

/*
|--------------------------------------------------------------------------
| Attachments By Default
|--------------------------------------------------------------------------
|
| This array contains the important default values that used in this package.
|
| The first value in this array is the default folder name in the storage
| which is all the attachments will be stored in.
| This is also going to be used in attachments urls in the views.
|
*/
'attachments' => [
    'folder' => 'attachments',
    // Below is the route name to download attachments.
    'route' => 'attachments.download',
],

];`

from chatify.

munafio avatar munafio commented on May 27, 2024

@dhruv1998 namespace available with v1.0.1
please re-install the package and follow the installation guide step by step and it will work as it should 🙏🏻

from chatify.

dhruv1998 avatar dhruv1998 commented on May 27, 2024

thanks @munafio it worked

from chatify.

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.