Jaytee

at Student at Ara Institute

Experience

59,015

66 Best Reply Awards

  • Member Since 1 Year Ago
  • 255 Lessons Completed
  • 1 Favorite

28th April, 2017

Jaytee left a reply on Laravel Mix Put All Js Code Inside App.js • 1 day ago

Well, I can say it is possible however, I strongly recommend you don't.

the libs Javascripts are likely not going to change frequently so if you combine it with your main javascript, you're just going to be busting the cache every time which means the whole lot needs to be reloaded. Not to mention, you'll need to compile the whole lot every time you make a change.

I suggest keeping the two files separate. That way, when you make a change, only the cache will bust for your main javascript stylesheet thus, faster loading times.

Jaytee left a reply on [Network] What Is The Longest A Dynamic IP Can Be Assigned? • 2 days ago

@fideloper That doesn't seem to be my case as the modem is reset regularly and as i've explained above, power cuts happen often.

27th April, 2017

Jaytee left a reply on [Network] What Is The Longest A Dynamic IP Can Be Assigned? • 2 days ago

The modem is running v4 not v6. I'm not complaining but just wondering. If it stays this way, i can run some things from home.

Jaytee left a reply on [Network] What Is The Longest A Dynamic IP Can Be Assigned? • 2 days ago

You see that's the weird thing @jlucia . We frequently get power cuts due to the grid down the road. I say frequently, about every 3 months. We had one about a month ago that caused the power to stay off for around 4 hours and yet it's the same.

It's weird how the ISP requires you to purchase a static IP yet it's as if tho we have one haha

Jaytee started a new conversation [Network] What Is The Longest A Dynamic IP Can Be Assigned? • 2 days ago

Hey guys,

So this actually relates to my home network. I have a dynamic IP address. I know this because if I want a static ip, i have to add $10 per month.

Now i know dynamics can change whenever they like but looking at the logs, my IP address has not changed for a minimum of 5 months. 5 months ago was when our speeds were upgraded from 100down and 20up to 1000down and 500up with a new modem but it's just weird.

So my question is, does a dynamic IP actually last this long or is the modem somehow, keeping it static? I'm not really worried, but i just noticed it and thought, a bit strange considering before the new modem, it used to change frequently.

Cheers

26th April, 2017

Jaytee left a reply on Homestead First Vagrant Up Stuck • 3 days ago

Ummm, try download an older version of vagrant?

I personally haven't gone back to Homestead since Valet released but that may be a different case for you.

Jaytee left a reply on Homestead First Vagrant Up Stuck • 3 days ago

Did you complete this step from the documentation on Laravel?

If you are using Windows, you may need to enable hardware virtualization (VT-x). It can usually be enabled via your BIOS. If you are using Hyper-V on a UEFI system you may additionally need to disable Hyper-V in order to access VT-x.

Jaytee left a reply on How To Rename File In Subl With Emmet? • 3 days ago

You mean renaming/creating files etc yes? That's not part of Emmet. Jeff usually uses this plugin here: https://github.com/skuroda/Sublime-AdvancedNewFile

As for the double clicking on a variable and changing multiple instances, that is part of Sublime. I can't remember the shortcut for that but you can find it on the sublime website.

23rd April, 2017

Jaytee left a reply on Cannot Recreate Migration Files. • 6 days ago

Delete the migrations table from your database and then try again.

Jaytee left a reply on Conditional Email Validation • 1 week ago

@Snapey That's what i thought but on a checkbox without a default value, when i did a check to see if it was equal to 1, it returned false. Comparing it against true came back true.

Jaytee left a reply on Laravel Mix Won't Compile Sass Files • 1 week ago

What does your webpack.mix.js file look like?

Make sure it includes

mix.sass('resources/assets/sass/app.scss', 'public/css/app.css');
mix.sass('resources/assets/sass/custom.scss', 'public/css/custom.css');

Or something similar along those lines.

Jaytee left a reply on Cannot Recreate Migration Files. • 1 week ago

Here's a good idea, why not create the folder yourself?

Jaytee left a reply on Conditional Email Validation • 1 week ago

Okay nevermind. I did a quick test. If a checkbox is selected, the request picks it up as "on" rather than a boolean. so for the value of the required_if:wifi set it to on and see if that works.

$this->validate($request, [
    'email' => 'required_if:wifi,on|email'
]);

Jaytee left a reply on Conditional Email Validation • 1 week ago

Try some of these:

$this->validate($request, [
   'email' => 'required_if:wifi|email', // remove the value
]);

Or define the opposite rule

$this->validate($request, [
   'email' => 'required_unless:wifi,0|email',
]);

21st April, 2017

Jaytee left a reply on Uber Like Ondemand Service Webiste • 1 week ago

@topvillas What was the point of linking OP two websites he's already familiar of ? lmfao

20th April, 2017

Jaytee left a reply on Syntax Error, Unexpected '<' In View • 1 week ago

No no no no no no no no no no no no noooooooooooo.

Who uses a beautiful framework but doesn't use the features that makes it shine? :/

Jaytee left a reply on Bulma Forcing New Lines In Small Displays With Levels • 1 week ago

Of course it's going to display as a column rather than a row because it's accomodating the smaller screen size.

This is basic CSS (Flex), so you should really know this, more specifically responsiveness.

I suggest you dive into the CSS yourself and resolve the issue. It really is not hard. Yes the whole point of this forum is to provide help but even a beginner could fix this problem.

Jaytee left a reply on How To Override A Laravel Package Function • 1 week ago

Wait so you just want to make the output all lowercase? In that case, just call the method within the strtolower() function. Problem solved.

Jaytee left a reply on Getting Statistics On Subscriptions With Cashier • 1 week ago

They won't clash as long as they have different namespaces, which they will.

If you so happen to use both Subscription classes within the same file, you'll need to temporarily rename one but i don't see why you'll need to do this.

Jaytee left a reply on Updating Address Table • 1 week ago

Well, I'm a little bit confused as to how the customer is creating their address first.

If i look at this line, you're only mentioning the customer Id but not the actual data too, unless i'm missing something.

$address = Address::create([
    'customer_id' => $customer['id']
]);

for the postAddress method, i.e: updating the address. There's absolutely no need to be instantiating a new Address. You could simply get the user and then call the address relationship.

$user->address()->update([
    'address' => $request->address // etc
]);

Jaytee left a reply on Getting Statistics On Subscriptions With Cashier • 1 week ago

You're best of hitting the database with a raw query or setup an eloquent model.

If you want, separate it into it's own class (if you use an eloquent model, then there's no need).

The only other option that I can think of off the top of my head is hitting the Stripe API which doesn't make sense.

13th April, 2017

Jaytee left a reply on Undefined Variable: Countries (View: C:\xampp\htdocs\list\resources\views\vendor.blade.php) • 2 weeks ago

Can you show me the route that is responsible for the vendor.blade.php file please.

Jaytee left a reply on Duplication Notification • 2 weeks ago

There are a whole lot of things wrong with the notifications unfortunately. The times still aren't accurate too.

Jaytee left a reply on Undefined Variable: Countries (View: C:\xampp\htdocs\list\resources\views\vendor.blade.php) • 2 weeks ago

First of all, that code is a mess. It's so confusing and unnecessary.

Let's get down to the problem. The error is in vendor.blade.php. Based on your code, the method responsible for returning that view is create.

You haven't passed the countries through to that method so Laravel is throwing an error as it has no data to work with.

use:

public function create()
{
    $countries = // get your countries here.
    return view('vendor', compact('countries'));
}

12th April, 2017

Jaytee left a reply on College Assignment Project • 2 weeks ago

@martinbean Never haha. Bots still need friendly responses too lol. 5 months tho, i mean f^ck me haha

Jaytee left a reply on Laravel Mix Eat Too Much Ram • 2 weeks ago

How often does it eat the RAM. To be fair, looking at your webpack.mix file, it is doing a lot of work each time you make a change.

To clean some of that stuff up, i suggest combining files that aren't going to be updated/changed regularly (i.e: plugin files) once and then removing them from the webpack.mix file. That will generate one file.

Then all you need to focus on is the files you are going to change regularly.

Otherwise, every single time you make a change, you're re-compiling and re-combining files that haven't been changed which doesn't make sense.

Let me give you an example from the code you've provided:

mix.combine([
    'public/js/app.resource.js',
    'resources/assets/js/site/jquery-3.0.0.min.js',
    'resources/assets/js/site/jquery-migrate-1.4.1.min.js',
    'resources/assets/js/site/modernizr-custom.js',


    'resources/assets/js/site/ie10-viewport-bug-workaround.js',
    'resources/assets/js/site/bootstrap-datepicker.js',
    'resources/assets/js/site/bootstrap-datepicker.hu.js',
    'resources/assets/js/site/bootstrap-modal.js',
    'resources/assets/js/site/bootstrap-modalmanager.js',
    'resources/assets/js/site/responsive-tabs.js',
    'resources/assets/js/site/jquery.uniform.js',
    'resources/assets/js/site/owl.carousel.min.js',

    'resources/assets/js/site/isotope.pkgd.min.js',
    'resources/assets/js/site/packery-mode.pkgd.min.js',

    'resources/assets/js/site/jquery.mCustomScrollbar.concat.min.js',
    'resources/assets/js/site/bootstrap-slider.js',
    'resources/assets/js/site/jquery.responsive-dom.min.js',
    'resources/assets/js/site/bootstrap-checkbox.js',
    'resources/assets/js/site/bootstrap-select.js',
    'resources/assets/js/site/owl.carousel2.thumbs.min.js',
    'resources/assets/js/site/frontend.js'

], 'public/js/app.js');

All of this, is unnecessary. There's only one file that will be changed regularly and that's the frontend.js. The rest are plugins.

11th April, 2017

Jaytee left a reply on College Assignment Project • 2 weeks ago

@kiandawson The last thing i was expecting was for this thread to be bumped.

Uhhh, you're a bit late by maybe, 5 months. The assignment was due 5 months ago. On a note, frameworks also weren't allowed.

Whilst i thank you for your input, next time, please actually read the thread and the date posted as it states my project was due in on the Friday.

20th March, 2017

Jaytee left a reply on 422 (Unprocessable Entity) In Laravel With Vuejs • 1 month ago

@kerranm Don't bump something that's 7 months old man. It's already been resolved.

17th March, 2017

Jaytee left a reply on Vue2 Laravel 5.4 File Upload Again • 1 month ago

Does your form have:

<form enctype="multipart/form-data">

??

14th March, 2017

Jaytee left a reply on By What Magic Can I Use The Helpers Methods Outside Laravel ? • 1 month ago

Likely your IDE has persisted them from the past and of course in return, remembers them.

You can have a look at the Str classes in Laravel and copy the code over and then create a helpers file.

A helpers file is then loaded in using composer which then allows you to use functions instead of instantiating classes and then, call the method.

13th March, 2017

Jaytee left a reply on Bootstrap Tooltip Not Working? • 1 month ago

Which bootstrap version you using? B4 requires you to pull in an extra package now for tooltips to work. You can see this in the docs.

Jaytee left a reply on Class 'App\Mail\cardCreated' Not Found In Forge But Working Fine Locally • 1 month ago

Likely because it's on a different system that is not case sensitive.

It's always a good idea to capitalise every word:

ICapitaliseEveryWordHere

25th February, 2017

Jaytee left a reply on Chandra-Laravel Admin Template • 2 months ago

Great story.

It's also still behind time and is $25 more expensive than any other platform out there.

20th February, 2017

Jaytee left a reply on Namespace Karma • 2 months ago

If you've set the namespace Karma then you need to use Karma\Bands

12th February, 2017

Jaytee left a reply on MacBook Air Or Pro 13 • 2 months ago

@SaeedPrez Those ripoff jokes tho haha

11th February, 2017

Jaytee left a reply on Implicit Controllers - Laravel 5.4 • 2 months ago

@SaeedPrez We hijacked this thread coz' we're BAWSS haha. Yeah usually i have one cup to every 45mins to an hour. My cup is equal to 2.6 regular cups so it's a big hit for me. Water isn't so bad but then again, it is lemon and lime flavoured haha. It's just the headaches killing me. Felt fresh as on day one, feel like death now, time for the withdrawal symptoms to fuck off i reckon ;)

I'm studying a Web Development diploma, there wasn't really much of a path for me to take that interested me. The options were, IT Support, Networking or Web Development. The course is shite to be honest, the first semester was all about html and css with a little bit of python programming (that was aight). This semester involves databases which is no doubt going to be boring. I have multiple early starts for my schedule too which sucks because i can't even wake up early if i wanted to.

Wow, this paragraph is huge. I've never heard of a "headless" CMS, what is that? At least you're close to releasing your project, i keep changing mine around because i'm OCD when it comes to how my project structure looks haha.

10th February, 2017

Jaytee left a reply on Implicit Controllers - Laravel 5.4 • 2 months ago

@SaeedPrez Nothing much. I'm into Day 3 of cutting down coffee. 3 cups a day or 8 cups as a normal sized cup lol. Massive headaches as you'd expect. Starting second and final semester of my Diploma in a week haha. What's your project that you're releasing?

Jaytee left a reply on Post Your Reply Not Seen In Firefox • 2 months ago

Holy fuck yeah Firefox is fucked on Laracasts.

@JeffreyWay here's my imgur gallery. One of them is zoomed out and the other is normal.

http://imgur.com/a/P6vfZ

Grid is fucked which makes the "post to reply" not visible.

Jaytee left a reply on Implicit Controllers - Laravel 5.4 • 2 months ago

@Snapey and I can't be the reason that you've only ever posted two topics in 9 months. Let's just get that one off the plate. You posted this topic without being polite pretty much.

You said @Snapey responded with a "kid answer". I'll let Snapey respond to that one, i'm sure he'll be thrilled.

You would rather sit here and talk about how it's absurd that it was removed, nearly a year since there was a warning it was going to be deprecated.

What is so hard about changing your application for the better? Oh "because your application is large". So? I dedicate time for upgrades if/when i need to, that may be different for you but there's no point complaining about it. You have heaps of solutions, not upgrading, find someone to do it, dedicate time for someone else to do it.

Explicit routing is a lot better.

When you started using Laravel, you would of known that updates would happen and things would change

Good morning.

9th February, 2017

Jaytee left a reply on Implicit Controllers - Laravel 5.4 • 2 months ago

All this time bitching about it long after it's gone and you could of came up with a solution.......

Shit happens, things change, you work around it. Simple.

Now i will have to put someone to redo a thing that's working, just because Laravel thinks that a "pretty code" values more than a business need.

Going on like you paid to use Laravel. You've had plenty of time to come up with an alternative since it was deprecated.

Jesus. Yo @SaeedPrez what you up to? haha

Jaytee left a reply on How To Create Models On The Fly • 2 months ago

Well.... Good job on creating this but i need to tell you something:

There are much more efficient and readable solutions to this :(

You're re-creating values that already exist (such as database credentials) and making a new connection using SQLi which isn't necessary.

Here's a challenge for you. Using Laravel's functionality, see if you can re-create this.

I'll give you some tips:

  • Stubs
  • Filesystem
  • Commands (not necessary but running a single command may be ideal)
  • Eloquent / Query Builder
  • Illuminate String / Array classes.

6th February, 2017

Jaytee left a reply on If Form Feild Is Blank Insert A 0 • 2 months ago

Why not just add defaults to your migrations?

$table->integer('my_integer')->unsigned()->default(0);
// if nothing is entered by the user, then it automatically assigns a default value of 0

Jaytee left a reply on Macros... Don't Get It? • 2 months ago

@jlrdw Yeah that's the type of example i've had in my head all this time. I hardly used Macro's in word so can only briefly remember them hence why i'm a bit unsure. I should dig in to the Laravel Macroable class and have a little review.

Jaytee left a reply on Macros... Don't Get It? • 2 months ago

Never mind that lol, I'm still confused as to what a macro is in general lol.

Google Definition:

a single instruction that expands automatically into a set of instructions to perform a particular task.

So an instruction that handles multiple instructions to achieve a task?

I'm a newb. @SaeedPrez - We're besties now so wanna tell me what a macro is please

4th February, 2017

Jaytee left a reply on Class App\DataTables\PaymentsDataTable Does Not Exist • 2 months ago

Run composer dump-autoload.

If that doesn't work then it's likely Laravel couldn't resolve it. In that case, bind it to the service container.

Jaytee left a reply on Composer Update • 2 months ago

It's an invalid JSON error.

It's likely you haven't put the comma on the line before adding laravelcollective/html or

You may have put a comma after laravelcollective/html.

2nd February, 2017

Jaytee left a reply on SQLSTATE[HY000]: General Error: 1364 Field 'last_name' Doesn't Have A Default Value • 2 months ago

Look at your create method on the registration controller, you aren't passing the value through.

Jaytee left a reply on 5.2 Elixir Not Using App.scss To Style Page • 2 months ago

Since you're versioning then you should use the elixir() helper method.

{{ elixir('css/app.css') }}.

Jaytee left a reply on About Master Page In Master Page • 2 months ago

@extends('your.master.template')

@section('content')

@endsection

For every section you intend to have, you need to have the equivalent @yield('sectionName') in your master template

1st February, 2017

Jaytee left a reply on Method Prefix Does Not Exist (?) • 2 months ago

@mesqueeb This is the same error you were stuck on right?

You see whats weird about this is that fluent routing wasn't introduced until 5.4 so i'm pretty sure you couldn't define a prefix() method in previous versions.

If i'm correct then for some reason, 5.4 features are being pulled in.

You could change the RouteServiceProvider and remove the prefix method and just define the prefix as you usually would on a route group and see if that works.

Route::group(['prefix' => 'api'], function () {
    // require routes.
});
Edit Your Profile
Update

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