vmitchell85

Experience

6,780

6 Best Reply Awards

  • Member Since 1 Year Ago
  • 26 Lessons Completed
  • 0 Favorites

21st April, 2017

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

Sorry, no idea

20th April, 2017

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

It seems you're using file based sessions and auth requires the session files. Since you cannot access the files for some reason that is why commenting that out works, since you don't need auth anymore for those routes.

vmitchell85 left a reply on Sending Email After Specific Date • 1 week ago

@sandstorm you'll need to change the path.

php /path/to/artisan the path to artisan is the path to the directory your application is in... so it might be something like php /var/www/myapp/artisan

19th April, 2017

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

I'm out of ideas... If you can I would suggest destroying the vagrant box, downloading the latest Homestead again.

Sorry I couldn't be of more assistance.

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

does the /home/vagrant/sites/inventory/storage/framework/sessions/ folder exist? what are the permissions on that folder if it does exist

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

Can you post the full error please

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

The stack overflow thing you posted is irrelevant. You're developing on a dev machine so you generally don't need to work about permissions right now. When you deploy your code online then you'll need correct permissions. Having 777 right now is fine.

I want to know exactly what you are doing to get the error. Are you running a command on the vagrant box? Are you trying to load a url in the browser? What exactly are you doing to make the error show up?

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

What are you doing when you get the error?

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

Running chmod 777 on any directory gives the directory owner, group, and everyone read/write/execute access... this means if you've ran it with 777 then everyone has read/write/execute access.

So, even though it says "permission denied" it might be something else contributing to it.

If you run ls -l in your main application directory does it show drwxrwxrwx for your storage and bootstrap directories?

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

The permissions changes should always be on the Vagrant machine, since that is where the app is running.

Is there any additional info in the error message?

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

Did you run php artisan key:generate to populate the APP_KEY in your .env file? Found a similar post that states that may be the issue.

vmitchell85 left a reply on Homestead Projecct Is Always Served On Localhost, Homestead.yaml Configuration Is Ignored • 1 week ago

I noticed you said you ran vagrant up --provision but the docs say to run vagrant reload --provision. Have you tried that? I don't know that there is a difference but it might be worth a shot.

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

I'm a little rusty on Homestead as I've been using Valet for a while now, but if I remember correctly I would normally run my laravel new while SSHd into the Homestead Vagrant box.

18th April, 2017

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

If you create a brand new laravel site does the new site work?

Also are you running those commands in your host Ubuntu or the vagrant box?

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

@vapenation The recommended change for intended to be for testing, not for permanent use.

vmitchell85 left a reply on Wait For External Resources • 1 week ago

I assume you're including an external javascript file from flowplayer and that isn't loading before your Vue component is loaded?

Are you loading the JS file in the component or in the layout file? Does flowplayer have a variable you can watch for? Sorry not familiar with flowplayer.

vmitchell85 left a reply on Permission Denied - Laravel 5.2 - Vagrant • 1 week ago

Was the path to the error the same after running your chmod commands?

Maybe ensure bootstrap/cache also is 777

vmitchell85 left a reply on Database Table Structure For News Feed. • 1 week ago

Maybe do a polymorphic?

  • users has many content
  • content has user_id, contentable_id, contentable_type

Just an idea... I had to set multiple up recently this way.

See: https://laravel.com/docs/5.4/eloquent-relationships#polymorphic-relations

vmitchell85 left a reply on Homestead Projecct Is Always Served On Localhost, Homestead.yaml Configuration Is Ignored • 1 week ago

If you shutdown your Vagrant box is something still running on localhost:8000 ?

vmitchell85 left a reply on Problems With Modal (can’t Close It) • 1 week ago

If you're using Bulma (it looks like it) you should conditionally load the is-active class instead of using v-show.

use :class="{'is-active' : show}"

vmitchell85 left a reply on Not Able To Set Flowplayer SRC With Vue.js Variable • 1 week ago

@doors.jm Good to hear you found something that got it working. I would've said to try ensuring the correct this in your axios call.. like this:

getLesson() {
        var lesson_slug = $('#lesson_slug').val();
        var vThis = this;
        axios.get('/api/lesson/' + lesson_slug).then(response => {
            vThis.lesson = response.data;
            vThis.video = "/uploads/" + response.data.video;
        }).catch(response => {
            //
        });
    },

Regardless,

vmitchell85 left a reply on Customize Register Controller • 1 week ago

You can modify the create method in the same RegisterController to store the information to whatever table you want.

It defaults to the User model but you can change that logic.

As @jekinney mentioned you can create your own, but I would just modify the existing one to meet your needs.

vmitchell85 left a reply on Not Able To Create A Symlink For Sublime On MAC. • 1 week ago

If you run ls /usr/local/bin do you see subl there?

17th April, 2017

vmitchell85 left a reply on Customize Register Controller • 1 week ago

The RegisterController has a validator method that compares against the users table using the validation rule unique:users.

You should be able to change that to be the the other table name and specify the column if you want.

See https://laravel.com/docs/5.4/validation#rule-unique

vmitchell85 left a reply on Not Able To Set Flowplayer SRC With Vue.js Variable • 1 week ago

Can you post your Vue code? video will need to be a data or prop entry.

Also, it might be useful to use videoUrl or something else to ensure you're not conflicting with the <video> tags (even thought that shouldn't happen).

vmitchell85 left a reply on My Project Doesn't Work • 1 week ago

I think you'll need to post a bit more information. Maybe your routes file and the route you're trying to hit.

I'd also check the following:

  • Did you run composer install
  • Did you migrate your database?
  • Did you setup your .env file?
  • Did you run php artisan key:generate for the .env key?

Hope this helps...

vmitchell85 left a reply on Not Able To Create A Symlink For Sublime On MAC. • 1 week ago

I think you need to wrap the sublime text path in quotes since there is a space... like this:

ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

13th April, 2017

vmitchell85 left a reply on Can You Constrain Free Plans To Max Users? • 2 weeks ago

Oh interesting... if I require a card up front then the free plans show. Whether it's freeTeamPlan or price(0).

https://www.dropbox.com/s/gb0vd7a1f001cxi/Screenshot%202017-04-13%2008.44.01.png?dl=0

vmitchell85 left a reply on Can You Constrain Free Plans To Max Users? • 2 weeks ago

I also added a plan with a price of 0 and it doesn't even show up as a plan.

vmitchell85 left a reply on Can You Constrain Free Plans To Max Users? • 2 weeks ago

With a vanilla Spark install I set it up like this:

Spark::useStripe()->noCardUpFront()->teamTrialDays(10);

        Spark::freeTeamPlan()
            ->maxTeamMembers(1)
            ->features([
                'First', 'Second', 'Third'
            ]);

        Spark::teamPlan('Basic', 'provider-id-1')
            ->price(10)
            ->features([
                'First', 'Second', 'Third'
            ]);

And when I tried to invite another person to the team it denied me. I think it's defaulting to the free plan for the trial, so existing users on the trial are probably not under the same rules as new members.

If you create a new user under the trial can you add more than 5 users?

vmitchell85 left a reply on Can You Constrain Free Plans To Max Users? • 2 weeks ago

I'll create a quick test app and check this out. I do know there is no indication of being on a trial though.

25th March, 2017

vmitchell85 left a reply on How To Not Commit Multiple Version Of Js And Css Files Using Webpack • 1 month ago

There was a bug in mix that fixed this. I'd delete all of them, re-run npm run production and update your mix version.

vmitchell85 left a reply on Elixir Notifications Don't Appear • 1 month ago

Are you running Gulp in the Homestead VM or on your Windows command line? You won't get them if you're running them in the Homestead VM.

vmitchell85 left a reply on Persisting Databases Upon Vagrant Destroy • 1 month ago

This doesn't really answer your question but if I was in your position I'd either create a script to export the DBs that I run before destroying, or build database seeders to mock the data I need.

Also, how often are you running destroy? I think I only ever ran it when a new vagrant box was available.

vmitchell85 left a reply on How To Make Alert-component Disappear Automatically? • 1 month ago

Under components you normally just have the name and then do something like import 'MinimalFlash' from './minimal-flash.vue'; above your export default line

23rd January, 2017

vmitchell85 left a reply on Unlimited Recursion Through An Eloquent Collection • 3 months ago

What about something like this in your User model?:

    protected $with = ['referredBy'];
    protected $appends = ['level_count'];

    public function referredBy()
    {
        return $this->belongsTo(User::class, 'referred_by', 'id');
    }

    public function getLevelCountAttribute()
    {
        $count = 0;

        $user = $this;

        while ($user->referredBy) {
            $count++;
            $user = $user->referredBy;
        }

        return $count;
    }

This will append the referredBy user to each user, and then do the looping to determine the number of parents...

12th January, 2017

vmitchell85 left a reply on Match Creation Stops On Weird Error • 3 months ago

@Robinvm You can hit me up on twitter if need be, same handle there...

29th December, 2016

vmitchell85 left a reply on Fetch Parent Column When Using Relationships • 4 months ago

One option:

Add a getChefAttribute to your Food model, and then add 'chef' to your $appends array.

See https://laravel.com/docs/5.3/eloquent-mutators#accessors-and-mutators for attribute accessor.

See https://laravel.com/docs/5.3/eloquent-serialization#appending-values-to-json for $appends

vmitchell85 left a reply on Match Creation Stops On Weird Error • 4 months ago

@WebKenth is quicker on the draw... his solution is what I was headed towards

vmitchell85 left a reply on Match Creation Stops On Weird Error • 4 months ago

That explains the error... it's looking for a 4, and it doesn't have a record with an id of 4... Let me look over the code more...

vmitchell85 left a reply on Match Creation Stops On Weird Error • 4 months ago

Not positive but I think your issue might stem from:

$teamsamount - 2;
$teamsamount1 - 2;```

I suspect you'd want it to be:

$teamsamount = $teamsamount - 2; $teamsamount1 = $teamsamount - 1;


vmitchell85 left a reply on Getting The Next Date From A Table • 4 months ago

Well it's working now... sorry I wasn't more of a help...

vmitchell85 left a reply on Getting The Next Date From A Table • 4 months ago

I wonder if the issue might have been the lack of ->get() after the where... regardless... happy you found something that works!

vmitchell85 left a reply on Getting The Next Date From A Table • 4 months ago

@GreyhoundIT And you are sure you have fixture_date items with a date after now?

If you switch the sign from > to < do you get data back?

vmitchell85 left a reply on Getting The Next Date From A Table • 4 months ago

Try this:

$next = $fixtures->where('fixture_date', '>', Carbon::now());

vmitchell85 left a reply on Pass All The User Details As A Part Of Payment Request, While Generating The Request • 4 months ago

I'm not familiar with instamojo, but one thing I can tell you is that the last line in that function, $response = $api->paymentRequestsList(); will never get executed since it's after the return statement.

vmitchell85 left a reply on Google Maps With Laravel • 4 months ago

I notice one of your paths shows laravel_42. Are you running Laravel 4.2?

What version of the Cornford\Googlmapper package are you using? (should be in composer.json)

Edit Your Profile
Update

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