sbcman74

sbcman74

Member Since 3 Years Ago

Experience Points 121,180
Experience Level 25

3,820 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 1176
Lessons
Completed
Best Reply Awards 4
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

13 Jun
1 month ago
08 Mar
4 months ago

sbcman74 left a reply on Blank Page After Building Vue.js Applications For Production

Are there any errors when compiling with the run build command? Are there any browser console errors?

24 Jan
5 months ago

sbcman74 left a reply on Class 'App\Http\Controllers\Properties' Not Found

It looks like maybe you have some typos.

use App\Propaties;
14 Mar
1 year ago

sbcman74 left a reply on Help With Issue In Build "ProjectFlyer" With Me: The Flyer Form EPISODE 5

Dang typos....and missing brackets. Biggest wasters of time when debugging code.

09 Feb
1 year ago

sbcman74 left a reply on Problem(The Page Has Expired Due To Inactivity.)

You might double check the name of the meta tag for csrf token in your layout file or blade view.

05 Jan
1 year ago

sbcman74 left a reply on SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'email' Cannot Be Null (SQL: Insert Into `users` (`fullname`, `email`, `password`, `updated_at`, `c

Upon further review...the mass assignment issue aside, we need to figure out why your email field is blank when the record is attempting to be saved. I will take a harder look at your code later tonight.

sbcman74 left a reply on SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'email' Cannot Be Null (SQL: Insert Into `users` (`fullname`, `email`, `password`, `updated_at`, `c

Check out your User model for fillable or guarded fields. Looks like it is related to mass assignment.

02 Jan
1 year ago

sbcman74 left a reply on Active Results Like Eloquent "with" In Query Builder

@ahmadissa You might try the "has("relationship")" method off your model. That will filter down to items that have that relation.

30 Sep
1 year ago

sbcman74 started a new conversation Task Model To Table In View

So say I have a Task model that has 'assigned_to' and 'due_date' columns. Ultimately I want to display a table in a view where the headers are the names of the assigned_to, the first column of each row is a due_date and under each name contains a count of tasks for that date.

Something like ...

        Name 1  Name 2

2017-09-22 5 3 2017-09-23 2 6

Having trouble coming up with the right query to group and return the data so I can iterate in the view.

Any thoughts on how the data I return from the controller should be organized to create the in the view?

17 Jul
2 years ago

sbcman74 started a new conversation Time Tracking

Since it seems like most projects are billed hourly, what tools do you use to track your time? I created a little timesheet app for myself but I wondered what everyone else does to make sure they are billing their clients accurately?

13 Jul
2 years ago

sbcman74 left a reply on PHPstorm Not VueJS Friendly?

No issues here either when using the vue plugin.

06 Jul
2 years ago

sbcman74 left a reply on Order Of Routes In Web.php

One option would to use Route::resource('/posts', 'PostsController');

Assuming you are keeping it a restful controller. Reduces your routes to one line and order is no longer an issue.

03 Jul
2 years ago

sbcman74 left a reply on What's Your Opinion About What Rasmus Said

Or they have vendors who provide support for them. Or they are not using PHP. Or a million other reasons not come to this forum for support. Didn't the talk start saying "Every needs a framework".

Just depends on how you define framework and who built your framework. My experience from working at an enterprise level company, not as an app developer mind you, is that you have a mixture of frameworks, vendors, and languages.

Everything gets massaged to what the business needs.

01 May
2 years ago

sbcman74 left a reply on Adjust A Width And Height To An Image (Model-Blade)

You could wrap the {{ $photo->image }} in an image tag and then apply a class you can target for your CSS. Or if you have a path attribute or similar on your image model you can do something like below.

<img class="img-class" src="{{$photo->image->path}}>

20 Mar
2 years ago

sbcman74 left a reply on Image Handling And Manipulation

There are a couple of videos here on Laracasts. Search "image" and you will find them.

https://laracasts.com/lessons/laravel-image-manipulation

15 Mar
2 years ago

sbcman74 left a reply on Should I Learn Jquery ?

Well I suppose we know what some folks think of hobby programmers? I am not sure if we would match definitions on the terms but prior to this thread I would consider myself a hobbyist programmer. I don't code for a living, I am not employed as a developer but I love it and not sure why the angst against hobby programmers. When my non-hobby day is done I get to home and have fun with and be passionate about coding.

The OP asked a legit question and it devolves into a pissing contest instead constructive feedback and help. Coming from outside the development community, I do not understand this mentality but I see it happen often. Maybe it's more forum mentality than developer mentality...

My answer to the question would be yes, learn it but understand that there are modern methods of how to implement similar behavior by using plain javascript or what you may pull in from a framework. It's a tool...use it when it fits.

13 Mar
2 years ago

sbcman74 left a reply on Call Method From Another Component

I have been taking the event bus approach more lately.

var EventBus = new Vue();

Then your event bus is responsible for emitting the event and then you can listen for the event in the create/mounted functions of your components and take action (set data, call a method, etc).

KenoKoro has pointed you in the right direction.

06 Mar
2 years ago
04 Mar
2 years ago

sbcman74 started a new conversation Event Bus Not Working

So I am using similar code on other pages in my app with out issue but for some reason I cannot get the Event bus to emit an event. The initMap function is being called as a callback when initiating the Google Maps API. The alert popup fires so I know the function is being called but the event does not emit. The event will be used to communicate with a map component but not getting to that point yet. Any Thoughts?

<script>

    window.Event = new Vue();

    var app = new Vue ({
        el:'#app',  
        data: {
            zip:'',
            city:'',
            state:'',
            address: ''
        },
        methods: {
            getZip: function() {
                var app = this;
                if(app.zip.length == 5) {
                    axios.get('http://ziptasticapi.com/' + app.zip)
                    .then(function(response){
                        app.city = app.titleCase(response.data.city);
                        app.state = app.titleCase(response.data.state);
                    })
                    .catch(function (error) {
                        console.log(error);
                    });
                } else {
                    this.city='';
                    this.state='';
                }
            },
            titleCase: function (value) {
                return value.toLowerCase().split(' ').map(function(value) {
                    return (value.charAt(0).toUpperCase() + value.slice(1));
                }).join(' ');
            },
            initMap: function () {
                alert('called');
                Event.$emit('eventbus');
            }
        }

    })
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=XXXXX&callback=app.initMap" async defer></script>
20 Feb
2 years ago

sbcman74 left a reply on Vue JS - Data Not Displayed

You will need to show your Vue instance.

15 Feb
2 years ago

sbcman74 left a reply on Problems...

All seems well after clearing browser history.

sbcman74 started a new conversation Problems...

Anyone else having trouble getting videos to load right now? Also there is a gap/missing link between Series and Apparel in the navigation bar. Missing check marks in the green complete box of a series?

01 Feb
2 years ago

sbcman74 started a new conversation Resource Controller With Admin And Public Routes

Thoughts on best practice to handle this...not uncommon I would think.

I have a PostController that the resource routes are tucked behind an admin prefix. However for displaying the Posts, the routes should be publically accessible. Do I set up a separate controller to displaying the posts? Add additional methods to the PostsController for displaying the post on the homepage and /blog routes?

31 Jan
2 years ago

sbcman74 left a reply on Ckeditor Editor Alternative

Or go ahead and send through the data for the post/blog with the ajax request. I am trying to figure that out as well.

sbcman74 left a reply on Ckeditor Editor Alternative

The best solution I came up with is using the Laravel File Manager package integrated into TinyMCE. Probably not terribly different than CKEditor but it was the first one I got working the way I wanted. The benefit of the package is that it handles all of the file management/organization.

23 Jan
2 years ago

sbcman74 left a reply on Adding A Condition To Authentication - 5.3

@jim1506 You probably do not want to override anything in the vendor folder. Any updates to those classes, say through composer, could override your changes. Best to use the credentials function in the LoginController.

sbcman74 left a reply on Where Are You All From?

Near St. Louis, MO USA

17 Jan
2 years ago

sbcman74 left a reply on How Can I Install Laravel-mix In Laravel 5.3

Thanks for the guide. Worked perfectly to add to a 5.3 and 5.4 application.

18 Dec
2 years ago

sbcman74 left a reply on Valet And Compiling CSS

Yes, removing the first "/" fixed the issue.

17 Dec
2 years ago

sbcman74 left a reply on Valet And Compiling CSS

Well so I thought this was fixed with cache-busting but alas I am still having an issue with sites served through valet picking up/loading the new app.css file after running gulp. I am not having the issue when using php artisan serve to load up site through a server.

Any more ideas?

14 Dec
2 years ago

sbcman74 left a reply on Valet And Compiling CSS

@jekinney Thank you, I will take a look.

sbcman74 started a new conversation Valet And Compiling CSS

So I am having an issue with most recent version of Valet where it seems to keep the /public/css/app.css cached or something. No matter what I do after I compile my sass, when I got the app in the browser, the original css with bootstrap and the variables is loaded. Gulp is compiling without error and when I view app.css in Sublime I can see that my changes are reflected in the file but the browser is not loading the css.

Anybody have any thoughts?

05 Dec
2 years ago

sbcman74 left a reply on Controlling A Whole Page

Posting your code would be a code start. You may not be that far off...

13 Sep
2 years ago

sbcman74 left a reply on Flexbox

For the gap between the navbar and the header, I believe the

    in the nav has some native margin on it.

08 Sep
2 years ago

sbcman74 left a reply on $this->visit For 404 Pages

Maybe try ?

$this->assertResponseStatus(404);
01 Sep
2 years ago

sbcman74 left a reply on How To Store Date In Database

I have a helper function that creates Carbon instance and then I pass that when saving my model.

function createDate($date)
{
    $edate = Carbon::createFromFormat('m/d/Y g:i A', $date);
    return $edate;
}

You get $date from the request and save $edate to your model. You will will to update the format in the createFromFormat 1st argument to what you are using.

29 Aug
2 years ago

sbcman74 left a reply on PHPMap - Laramap Reimaged!

Getting an error when signing up with Github.....

QueryException in Connection.php line 761: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (SQL: insert into users (name, username, email, github_id, github_url, avatar, password, updated_at, created_at)

sbcman74 left a reply on Tests With DatabaseMigrations Cause Errors

Is it possible that the migrations are being run out of order? Does the schema look right if you migrate into mysql or sqlite?

24 Aug
2 years ago

sbcman74 left a reply on NotFoundHttpException In RouteCollection.php Line 161:

Also missing an opening brace on line:

Click <a href="{ url('/password/reset') }}">here</a> to reset your password

12 Aug
2 years ago

sbcman74 left a reply on Help With Regex

/^[a-z]+/ if "some" can be anything.

06 Aug
2 years ago

sbcman74 left a reply on Chrome Extension

Isnt it a json formatter? I think its a dumpling. The icon may have changed nowadays.

10 Jul
3 years ago

sbcman74 left a reply on Storing Multiple Choice Question Answers

I briefly looked at that as an option. I have not used a json column before so that would be a learning opportunity.

sbcman74 started a new conversation Storing Multiple Choice Question Answers

So I am building app for organizing a trivia night. One of the question type I want to allow for is a multiple choice. I am trying to figure out the best way to organize/store the multiple choice answers. I would like to keep the the question, answer, and multiple choice options in the same table but the only idea I have come up with is to build a separate model for the multichoice options and build a relationship back to the question model.

Any thoughts on how to organize this in the database?

17 Jun
3 years ago

sbcman74 left a reply on Install Phpmyadmin For Laravel 5.2

I currently have a symlink setup in my public folder that points to /usr/share/phpmyadmin. Seems to work fine.

14 Jun
3 years ago

sbcman74 started a new conversation People Picker / @user Functionality

Anyone have a recommendation for a people picker control for forms? And wasn't there a video where Jeffrey explained how to get the @username syntax working? I am striking out on search.

13 Jun
3 years ago

sbcman74 left a reply on Understanding Eager Loading

Thanks dxt3r.

What is the benefit of adding the query function? Performance, readability, etc?

sbcman74 started a new conversation Understanding Eager Loading

Making sure I have done this correctly, or at least using eager loading. It looks likes only three 3 queries are generating so I think I got it. Confirmation or a better way would be excellent!

I have User, Conversation and Comment models. Each Conversation can have comments. I want to gather Conversations started only by the user with the comments.

    ->conversation()
    ->orderBy('created_at', 'desc')
    ->with('comment')
    ->orderBy('created_at', 'desc')
    ->get();
03 May
3 years ago

sbcman74 left a reply on What Is Going On With Site Design?

That bootstrap theme hurt my eyes. How did we ever think that looked good?