sbcman74

sbcman74

Member Since 3 Years Ago

Experience Points
126,080
Total
Experience

3,920 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
1220
Lessons
Completed
Best Reply Awards
5
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.

Level 26
126,080 XP
Jun
13
4 months ago
Activity icon

Replied to Too Few Arguments To Function App\Http\Controllers\ShowrecordController::index(), 0 Passed And Exactly 1 Expected

Do you have anything in the database for it to pull? And I believe the variable in the route and the index method need to match.

Mar
08
7 months ago
Activity icon

Replied to 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?

Jan
24
8 months ago
Activity icon

Replied to Class 'App\Http\Controllers\Properties' Not Found

It looks like maybe you have some typos.

use App\Propaties;
 $property = Properties::all()->toArray();
Mar
14
1 year ago
Activity icon

Replied to 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.

Feb
09
1 year ago
Activity icon

Replied to .

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

Jan
05
1 year ago
Activity icon

Replied to 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.

Activity icon

Replied to 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. Make sure you have "fullname" allowed.

Jan
02
1 year ago
Activity icon

Replied to 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.

Sep
30
2 years ago
Activity icon

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| Name2|
|2017-9-22| 2| 6|
|2017-9-23|3|5|

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?

Jul
17
2 years ago
Activity icon

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?

Jul
13
2 years ago
Activity icon

Replied to PHPstorm Not VueJS Friendly?

No issues here either when using the vue plugin.

Jul
06
2 years ago
Activity icon

Replied to Order Of Routes In Web.php

One option would be 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.

Jul
03
2 years ago
Activity icon

Replied to 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.

May
01
2 years ago
Activity icon

Replied to Adjust A Width And Height To An Image (Model-Blade)

You could wrap the {{ $photo->image }} in an div 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}}">

Mar
20
2 years ago
Activity icon

Replied to 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

Mar
15
2 years ago
Activity icon

Replied to 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.

Mar
13
2 years ago
Activity icon

Replied to 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.

Mar
06
2 years ago
Activity icon

Replied to How To Wait For Multiple Events To Happen Before Sending Mail?

Task Schedule? using cron jobs maybe?

Scheduling

Mar
04
2 years ago
Activity icon

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>
Feb
20
2 years ago
Activity icon

Replied to Vue JS - Data Not Displayed

You will need to show your Vue instance code in your post.

Feb
15
2 years ago
Activity icon

Replied to Problems...

All seems well after clearing browser history.

Activity icon

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?

Feb
01
2 years ago
Activity icon

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?

Jan
31
2 years ago
Activity icon

Replied to 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.

Activity icon

Replied to 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.

Jan
23
2 years ago
Activity icon

Replied to 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.

Activity icon

Replied to Where Are You All From?

Near St. Louis, MO USA

Jan
17
2 years ago
Activity icon

Replied to 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.

Dec
18
2 years ago
Activity icon

Replied to Valet And Compiling CSS

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

Dec
17
2 years ago
Activity icon

Replied to Valet And Compiling CSS

<link rel="stylesheet" href="/css/app.css">

and this is what I have in my partial using cache busting.

<link rel="stylesheet" href="{{elixir('/css/app.css')}}">

And therein lies the problem...Removing the first "/" solves the issue.

Activity icon

Replied to 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?

Dec
14
2 years ago
Activity icon

Replied to Valet And Compiling CSS

@jekinney Thank you, I will take a look.

Activity icon

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 go to 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?

Dec
05
2 years ago
Activity icon

Replied to Controlling A Whole Page

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

Sep
13
3 years ago
Activity icon

Replied to Flexbox

For the gap between the navbar and the header, I believe the ul in the nav has some native margin on it.

Sep
08
3 years ago
Activity icon

Replied to $this->visit For 404 Pages

Maybe try ?

$this->assertResponseStatus(404);
Sep
01
3 years ago
Activity icon

Replied to 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 need to update the format in the createFromFormat 1st argument to what you are using.

Aug
29
3 years ago
Activity icon

Replied to 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)

Activity icon

Replied to 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?

Aug
24
3 years ago
Activity icon

Replied to 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

Aug
12
3 years ago
Activity icon

Replied to Help With Regex

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

Aug
06
3 years ago
Activity icon

Replied to Chrome Extension

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

Jul
10
3 years ago
Activity icon

Replied to 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.

Activity icon

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 options. 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?

Jun
17
3 years ago
Activity icon

Replied to [SOLVED]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.

Jun
14
3 years ago
Activity icon

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.

Jun
13
3 years ago
Activity icon

Replied to Understanding Eager Loading

Thanks d3xt3r.

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

Activity icon

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.

    $conversations = $request->user()
    ->conversation()
    ->orderBy('created_at', 'desc')
    ->with('comment')
    ->orderBy('created_at', 'desc')
    ->get();
May
03
3 years ago
Activity icon

Replied to What Is Going On With Site Design?

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