devit.gg

President & Founder at Myez Dev

Experience

950

0 Best Reply Awards

  • Member Since 5 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

15th June, 2017

devit.gg started a new conversation Socialite-Battlenet • 2 months ago

I'm trying to use Socialite-Battlenet ( https://github.com/teamreflex/Socialite-BattleNet ) and I followed the guide given.

Set up a quick test in my controller (Absolutely fresh install Laravel 5.4 with Socialite + Socialite-Battlenet)

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request; use BattleNet;

class BattleNetController extends Controller { public function index(){ return BattleNet::redirect(); } }

Now when i go to the route for this function /callback

I get this error

(1/1) InvalidArgumentException Driver [battlenet] not supported.

I really don't see anything about this out there? Anyone have any idea?

8th June, 2017

devit.gg left a reply on Laravel Discord Server • 2 months ago

Link me

devit.gg started a new conversation Riot API Laravel 5.4 Github • 2 months ago

Has anyone used Riot (League of Legends) with 5.4? Wondering if anyone has anything on open source before I go reinventing the wheel.

I found one on github but its for Laravel 4.

7th May, 2017

devit.gg left a reply on Saving Json To File/ Decoding • 3 months ago

Nothing; either it's not writing to the file or it's not receiving the data from fb... ugh

devit.gg left a reply on Saving Json To File/ Decoding • 3 months ago

https://developers.facebook.com/docs/messenger-platform/webhook-reference#format

{ "object":"page", "entry":[ { "id":"PAGE_ID", "time":1458692752478, "messaging":[ { "sender":{ "id":"USER_ID" }, "recipient":{ "id":"PAGE_ID" },

      ...
    }
  ]
}

] }

devit.gg left a reply on Saving Json To File/ Decoding • 3 months ago

public function getFacebookData(){
    $contents = json_encode(file_get_contents("php://input"));
    File::put('nonesense.txt', $contents);
    $fbData = Storage::get('nonesense.txt');
    $fbData = json_decode($fbData);

    return $fbData;
}

/THE APP FOLDER/storage/nonesense.txt

is this correct?

devit.gg left a reply on Saving Json To File/ Decoding • 3 months ago

How would I receive the JSON message, and pass it into my app without using a Text file?

devit.gg left a reply on Saving Json To File/ Decoding • 3 months ago

I'm sorry, i dont understand?

devit.gg started a new conversation Saving Json To File/ Decoding • 3 months ago

I'm requesting JSON from Facebook and i'm trying to put it into a file. I got this working with Core PHP... Transfering project over to Laravel.

Heres my code.

    public function initiate(){

   
    //Define   
     $accesToken = $this->getAccessToken();
     $fbData     = $this->getFacebookData(); 
     $theMessage = $this->getTheMessage($fbData); 
    
}  

public function getFacebookData(){

    $contents = print_r(file_get_contents("php://input"));;
    Storage::put('nonesense.txt', $contents);
    $fbData = Storage::get('nonesense.txt');
    $fbData = json_decode($fbData);

    return $fbData;
}

THIS is what i should be receiving...

{"object":"page",

"entry":[{

    "id":"87517577213413413415235645735673412349292224",
    "time":149363413413413413499037465,
    
        "messaging":[{
        
            "sender":{"id":"1482342342972024478467847726494"},
            "recipient":{"id":"875175779567345652435134292224"},
            "timestamp":149369905452345236537635674567437425,
            
                "message":{
                
                    "mid":"mi23gg25gw36yhrthsaPBts_",
                    "seq":298783,
                    "text":"hey there."
                    }
                }
            ]
        }
    ]
}

Anyone help me with this?

1st April, 2017

devit.gg left a reply on The Connection To This Site Is Not Secure • 4 months ago

Y'all just restored my hope in the human race by not 4channing this guy, and instead helping him.

Plus rep for you all, especially the one who emailed him.

29th March, 2017

devit.gg left a reply on Simple Rating Stars • 4 months ago

P.P.S

Start with passing a request response with "1" - "5" "Stars" as $request->['rating']

Should look SOMETHING like this.

$rating = new willvincent\Rateable\Rating;
$rating->rating = $request->['rating'];
$rating->user_id = \Auth::id();

$post->ratings()->save($rating);

devit.gg left a reply on Simple Rating Stars • 4 months ago

Yes, just looked at this as I might end up using this package for my project. It is very straight forward. If you need a tut on this, I suggest you relearn the basics of Laravel.

P.S PM me, I'll help you.

21st March, 2017

devit.gg left a reply on Show Modal On Redirect • 4 months ago

I am reloading the page when i redirect back. This modal works when i attach it to a button. just not when I use this open method.

20th March, 2017

devit.gg left a reply on Show Modal On Redirect • 4 months ago

I cleared all the errors, yet the modal is still not opening :\

devit.gg left a reply on Show Modal On Redirect • 4 months ago

so my console is giving me this error:

home:539 Uncaught SyntaxError: Invalid or unexpected token

devit.gg left a reply on Show Modal On Redirect • 4 months ago

    <script type="text/javascript">
$(function() {
    $('#myModal).modal('show');
});
</script>

seems to be this, when I change the modal to a toggle on click it works but this modal show method doesnt seem to be working.

devit.gg left a reply on Show Modal On Redirect • 4 months ago

Yeah I narrowed it down prior, i should have stated; I changed the modal script to a simple bootstrap alert and it catches the session and displays the alert. But when I change it back to the modal; it doesnt work.

devit.gg started a new conversation Show Modal On Redirect • 4 months ago

I've searched and my code seems to be correct; BUT my modal isnt opening on redirect. Anyone know why?

` ×

{{Auth::user()->username}}'s Friends

                        <div class="modal-body">
                            <h6 class="text-semibold text-center">You currently have no friends.</h6>
                            <p class="text-center">Why don't you search, and see if you find anyone you know?</p>
                            <p class="text-center"><button type="button" class="btn btn-default">Find a Friend</button></p>



                        <div class="modal-footer">
                            <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                        </div>
                    </div>
                </div>
            </div>
`

16th March, 2017

devit.gg left a reply on No Callbacks On Private-App.User.1 For Pusher:subscription_error • 5 months ago

Solved for anyone searching this:

Broadcast::channel('App.User.{userId}', function ($user, $userId) { return (int) $user->id === (int) $userId; });

devit.gg left a reply on Listening For An Event • 5 months ago

This is weird.

devit.gg left a reply on Pusher:subscription_error • 5 months ago

Thank you! I figured the ('App.user.*') would work as a wild card. RIP.

devit.gg started a new conversation Listening For An Event • 5 months ago

Basically, i'm sending out an event; Pusher is receiving it on their debug console. YET my other browser in which I'm specifically sending the private event to, is not.

The strange thing, is when I send an event to that channel VIA pusher's site; that browser on that private channel is receiving it.

Here is all relevant code.

http://pastebin.com/hLBPBcxK

devit.gg left a reply on Laravel 5.4 View Returns 404 Not Found • 5 months ago

{{route('home')}}

devit.gg left a reply on Vue Components Not Loading In Blade • 5 months ago

Did you gulp it? I don't see a around ur vue components.

devit.gg left a reply on Why Use Redis For Websocket Communication? • 5 months ago

I'm curious to this answer to.

Bump

devit.gg left a reply on Forcing Ignore Validation • 5 months ago

Remove it?

'numeric|unique:locations',

devit.gg left a reply on Database Migration Error • 5 months ago

Please check your .env file and update correct credentials into database info

devit.gg left a reply on Laravel Is Kool. • 5 months ago

Laravel is babe <3, she has naughty pictures at laravel.com/docs/5.4

devit.gg left a reply on Make:auth Logging In Connection Refused To MySQL DB • 5 months ago

if you are using default xamp user/pass remove the "." from password, there isnt one, its just blank with username "root"

devit.gg left a reply on Pusher:subscription_error • 5 months ago

Anyone?

15th March, 2017

devit.gg started a new conversation Pusher:subscription_error • 5 months ago

My console is throwing the following error:

Pusher : No callbacks on private-App.user.1 for pusher:subscription_error

I did some googling, my BROADCAST_DRIVER is set to log, i changed it to pusher and then ontop of the above error, i get:

pusher.js?b3eb:593 POST http://laravelrocksmysocksoffeverynight.com/broadcasting/auth 500 (Internal Server Error) pusher.js?b3eb:626 Pusher : Couldn't get auth info from your webapp : 500

Attached are my relevant files

http://pastebin.com/QDtqPkrt

devit.gg left a reply on No Callbacks On Private-App.User.1 For Pusher:subscription_error • 5 months ago

wait, whats your error on console?

devit.gg left a reply on No Callbacks On Private-App.User.1 For Pusher:subscription_error • 5 months ago

I got the same issue here =[

devit.gg left a reply on Pusher Vue Error • 5 months ago

I put in both, still getting the error.

devit.gg left a reply on Pusher Vue Error • 5 months ago

import Pusher from "pusher-js" import Echo from "laravel-echo"

in app.js or in the vue component?

14th March, 2017

devit.gg started a new conversation Pusher Vue Error • 5 months ago

Im trying to use pusher to push notifications but im getting this error in my console?

I npm laravel-echo updated my .env file with my pusher info

Uncaught ReferenceError: Pusher is not defined
    at PusherConnector.connect (eval at 46 (app.js:394), <anonymous>:546:31)
    at PusherConnector.Connector (eval at 46 (app.js:394), <anonymous>:192:14)
    at new PusherConnector (eval at 46 (app.js:394), <anonymous>:537:135)
    at new Echo (eval at 46 (app.js:394), <anonymous>:689:30)
    at eval (eval at 13 (app.js:109), <anonymous>:45:15)
    at Object.13 (app.js:109)
    at __webpack_require__ (app.js:20)
    at eval (eval at 59 (app.js:493), <anonymous>:8:1)
    at Object.59 (app.js:493)
    at __webpack_require__ (app.js:20)

my app.js file

require('./bootstrap');

Vue.use(require('vue-resource'));


/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */

Vue.component('example', require('./components/Example.vue'));



Vue.component('feed', require('./components/Feed.vue'));

Vue.component('post', require('./components/Post.vue'));

Vue.component('post-form', require('./components/PostForm.vue'));


Vue.component('displayfriends', require('./components/ProfileComponents/DisplayFriends.vue'));
Vue.component('connectdropdown', require('./components/ProfileComponents/ConnectDropdown.vue'));

Vue.component('notifications', require('./components/Notifications/Notification.vue'));



const app = new Vue({
    el: '#app'
});

My package.json

{ "private": true, "scripts": { "prod": "gulp --production", "dev": "gulp watch" }, "devDependencies": { "bootstrap-sass": "^3.3.7", "gulp": "^3.9.1", "jquery": "^3.1.0", "laravel-elixir": "^6.0.0-9", "laravel-elixir-vue-2": "^0.2.0", "laravel-elixir-webpack-official": "^1.0.2", "lodash": "^4.16.2", "vue": "^2.0.1", "vue-resource": "^1.2.1" }, "dependencies": { "algoliasearch": "^3.20.3", "laravel-echo": "^1.1.3", "pusher": "^1.5.1", "pusher-js": "^4.0.0", "vuex": "^2.1.1" } }

9th March, 2017

devit.gg left a reply on Laravel <slot></slot> Not Displaying • 5 months ago

Yes, I feel like it's not reading the app.js file? But literally brand spanking new to vue.js, not sure how it's suppose to work exactly.

Frustrating, lol.

devit.gg left a reply on Laravel <slot></slot> Not Displaying • 5 months ago

No errors compiling in gulp

devit.gg left a reply on Laravel <slot></slot> Not Displaying • 5 months ago

Nothing is showing up in the console.... only that vue is in development mode.

http://pastebin.com/5uDuaL1q

8th March, 2017

devit.gg started a new conversation Laravel <slot></slot> Not Displaying • 5 months ago

As title says, the component is not displaying into my view. I did "gulp watch" and it did everything without errors.

My app.js

Vue.component('timeline', require('./components/Timeline.vue'));

const app = new Vue({ el: '#app' });

My Timeline.vue

Example Component

                <div class="panel-body">
                    I'm an example component!
                </div>
            </div>
        </div>
    </div>
</div>

export default { mounted() { console.log('component Ready.') } }

in my blade view

    <timelime></timeline>

devit.gg left a reply on Elixir Webpack Official Not Npm Installing • 5 months ago

I did npm install, then the laravel webpack offical global..

still not working, attached error.

http://pastebin.com/uX79gFFc

devit.gg left a reply on Elixir Webpack Official Not Npm Installing • 5 months ago

npm install nodegit

Is what you are referring to, correct?

devit.gg left a reply on Elixir Webpack Official Not Npm Installing • 5 months ago

http://pastebin.com/eDRtY04b

Threw error on the global command

NPM is 4.3.0 someone is bound to ask.

devit.gg started a new conversation Elixir Webpack Official Not Npm Installing • 5 months ago

I've googled the crap out of this, reinstalled all my stuff. When I add:

"laravel-elixir-webpack-official": "^1.0.2",

to my package.json and npm install, it throws error. Anyone have any ideas, what's going on here? I feel like it's something stupid, and I'm looking over something.

C:\Users\yordameister\Desktop\wamp64\www\secret>npm install npm WARN deprecated [email protected]: Just use Array.isArray directly npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) npm WARN addRemoteGit jeroennoten/webpack-stream#patch-1 resetting remote C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-5e1462f4 because of error: { Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) code: 'ENOGIT' } npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-5e1462f4: undefined npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror git://github.com/jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-5e1462f4: undefined npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) npm WARN addRemoteGit jeroennoten/webpack-stream#patch-1 resetting remote C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-jeroennoten-webpack-stream-git-patch-1-60be6dae because of error: { Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) code: 'ENOGIT' } npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-jeroennoten-webpack-stream-git-patch-1-60be6dae: undefined npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror https://github.com/jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-https-github-com-jeroennoten-webpack-stream-git-patch-1-60be6dae: undefined npm WARN addRemoteGit Error: not found: git npm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) npm WARN addRemoteGit jeroennoten/webpack-stream#patch-1 resetting remote C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a because of error: { Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) npm WARN addRemoteGit at F (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) npm WARN addRemoteGit at E (C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\index.js:44:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\which\node_modules\isexe\windows.js:29:5 npm WARN addRemoteGit at C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:114:15) code: 'ENOGIT' } npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a: undefined npm ERR! git clone --template=C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes_templates --mirror [email protected]:jeroennoten/webpack-stream.git C:\Users\yordameister\AppData\Roaming\npm-cache_git-remotes\git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a: undefined npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Users\yordameister\Desktop\wamp64\www\secret\node.exe" "C:\Users\yordameister\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v7.7.2 npm ERR! npm v4.3.0 npm ERR! code ENOGIT

npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\yordameister\AppData\Roaming\npm-cache_logs\2017-03-08T23_31_41_055Z-debug.log

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.