ahuggins

Hire Me

Experience

211,250

33 Best Reply Awards

  • Member Since 2 Years Ago
  • 942 Lessons Completed
  • 1 Favorite

28th January, 2017

ahuggins left a reply on Npm Install Sweetalert Missing .min.js File In Dist Folder • 3 weeks ago

HA, turns out, I excluded *.min.js files from being searched in Sublime, and it also doesn't show them in the file tree.

So that is why it was not showing up.

ahuggins left a reply on Npm Install Sweetalert Missing .min.js File In Dist Folder • 3 weeks ago

I've deleted and installed the sweetalert module a few times

ahuggins started a new conversation Npm Install Sweetalert Missing .min.js File In Dist Folder • 3 weeks ago

I am working on a Spark application, I run npm install and it looks like things install. But when I run gulp, the Elixir/Mix file tries to publish this .copy('node_modules/sweetalert/dist/sweetalert.min.js', 'public/js/sweetalert.min.js') but when I look in the public/js folder, there is no sweetalert.min.js file, and so I go look in the node_modules/sweetalert/dist/ folder the sweetalert.min.js file is missing too.

I go look on Github for the Sweetalert repo and it has the sweetalert.min.js file listed...so does anyone know why I am not getting the min.js file in the dist folder?

14th December, 2016

ahuggins left a reply on WYSIWYG Editor For Page Content • 2 months ago

So you are asking, how do you get your page content into a WYSIWYG editor?

Usually, you have that as a property on your Page model, where you store the html, then in the edit/create page you have your WYSIWYG editor connect to a textarea field, you store that in your db, then when you edit, you set the property as the value of the textarea and have the WYSIWYG connect to the text area again.

I've done this many times.

Also, there is not a WYSIWYG that is going to automatically handle file uploads into your Laravel app. If there is, I am unaware. Most likely there might be one that has the majority of this built in the front end side, but you will most likely have to handle the upload yourself.

12th December, 2016

ahuggins left a reply on How To Get Base Url Form Json In Laravel 5.3? • 2 months ago

Friendly reminder, you don't want your .env file in your Git repository

ahuggins left a reply on How To Get Base Url Form Json In Laravel 5.3? • 2 months ago

in the .env file, there is a key APP_URL. For your local development, you can set this to APP_URL=http://localhost where on production you would set this to the actual domain.

In your case you might want to set it to: APP_URL=http://localhost/mysystem/public but I can't say 100% that will work.

ahuggins left a reply on Laravel Socialite Throws A Fatal Error When I Cancel The Authorization Process With Facebook • 2 months ago

when Fb redirects you, it usually has a code in the url...I'm guessing when the user clicks "not now" it does not have this code in the url?

ahuggins left a reply on WhereBetween In Laravel 5 • 2 months ago

You need to make the $start and $end variables instances of Carbon...or make sure that the format matches what you have in the DB.

ahuggins left a reply on WYSIWYG Editor For Page Content • 2 months ago

I can also say, it would be unlikely that you would be able to enter Blade syntax in any WYSIWYG editor. They most likely are not programmed to process Blade.

You could try to program it yourself, but not sure what you are really trying to do in order to need this. Add some more context and people might be able to suggest more.

ahuggins left a reply on WYSIWYG Editor For Page Content • 2 months ago

What system are you using? There is not a WYSIWYG in Laravel, which package or CMS or whatever?

ahuggins left a reply on Security Check List For Laravel Production Apps. • 2 months ago

Set the APP_ENV in .env file to production

3rd December, 2016

ahuggins started a new conversation On The Laracasts Homepage The Laravel Logo Is Rotated? • 2 months ago

Is it just me or is the Larvel logo on the homepage of Laracasts rotated to the right 90 degrees?

I'm talking about the logos in the graphic underneath "It's kinda like netflix for your career!"

2nd December, 2016

ahuggins left a reply on One Controller For Multiple Models • 2 months ago

oh yeah, you would have to account for the $id

ahuggins left a reply on One Controller For Multiple Models • 2 months ago

Not sure I would recommend doing this but it could work.

You extend the base Controller, add a method show like this:

public function simpleShow($model, $view)
{
    $vocab = {$model}::find($id);
        return view($view, compact('vocab'));
}

Then in your VerbController you would have:

public function show()
{
    return $this->simpleShow('App\Model', 'view.name');
}

BTW, this is untested pseudo code, but it might work.

ahuggins left a reply on Discussion Links Not Always Showing Original Post • 2 months ago

It's probably the page GET parameter...I think when it is set to 0 you only are seeing page 0

22nd November, 2016

ahuggins left a reply on Laravel Relationship Not Working? • 2 months ago

Do you have the $cart object at that point?

15th November, 2016

ahuggins left a reply on Profile Bug • 3 months ago

It also shows the number of "best reply awards" to be the loggedIn Users as well.

ahuggins started a new conversation Profile Bug • 3 months ago

@JeffreyWay When I go to my profile, I see my experience points. But if I go to your profile, I see my experience points, but when I see your avatar I see (387,160 XP) next to your name.

I have checked a few other people's profiles, looks like there is a bug in the code on the profile where it shows the loggedIn users score, instead of the score of the person you are viewing.

17th October, 2016

ahuggins left a reply on Scheduler Has 6 Asterisks / Options Vs Linux's 5? What Is The Extra One For? • 4 months ago

@Bux The docs currently have this: ->cron('* * * * * *');

It should be able to work with 5, but I have seen questions before about it, check out this PR: https://github.com/laravel/docs/pull/2523

From the man Taylor, it supports six

ahuggins left a reply on Using Scope And Pagination In A Accessor ? • 4 months ago

I think your issue is coming from calling paginate() in your accessor.

When you do this: $model->records you are executing the query because of the paginate() call.

So if you try something like this: $model->records->search() it's going to not like it.

You could do this though: $model->applicants()->search() That should allow your search to be appended to the query.

ahuggins left a reply on How To Set Up Laravel Cashier For Multiple Users? • 4 months ago

Oh wait, you are wanting each user to have their own Stripe account so that they can charge their customers? That will be a little different then.

You would have to create a table that would store your users Stripe keys, then you would have to load the keys for the user before reaching out to Stripe. Though I am not sure people will/should provide both their secret and public keys.

ahuggins left a reply on How To Set Up Laravel Cashier For Multiple Users? • 4 months ago

In the documentation, it provides migrations for adding Stripe tokens:

https://laravel.com/docs/5.3/billing#stripe-configuration

ahuggins left a reply on Store Latex Equations In Database • 4 months ago

what does your form code look like?

what does your code for storing the info in the database look like?

You do have a field with name attribute that matches a column in your database?

ahuggins left a reply on Download Files From Storage Is Not Working? • 4 months ago

What do you get if you run this:

 if (file_exists($archive_name)) {
        dd($archive_name);
                    return response()->download($archive_name, 'test_'.$fromDate.'_'.$toDate.'.zip', $headers) /*->deleteFileAfterSend(TRUE)*/;
                }

ahuggins left a reply on Find The User Being Registered "undefined Variable User" • 4 months ago

This:

->with([
                        'token' => $user->token     // this is where it fails, line 47
                    ]);

should be:

->with([
                        'token' => $this->user->token     // this is where it fails, line 47
                    ]);

16th October, 2016

ahuggins left a reply on Where Should I Add Two Facades Shipped With The Dingo Package • 4 months ago

in the config/app.php file, in the aliases array, you should provide a key, which is how you would access the facade in your app.

15th October, 2016

ahuggins left a reply on Append Or Add Text To Existing View With A Package • 4 months ago

In your package you would want to create a ServiceProvider. Then you would have that ServiceProvider publish your assets, see this: https://laravel.com/docs/5.3/packages#publishing-file-groups

Then you would be able to edit the views that are published.

ahuggins left a reply on Fresh Spark Install: Trait 'Illuminate\Notifications\Notifiable' Not Found • 4 months ago

have you done a composer dump-autoload? Not necessarily the issue, but you didn't say you did it either, so first place to check.

ahuggins left a reply on Running Things When Ssh'd Versus Via The Forge Deploy Script • 4 months ago

In Forge you can edit the deploy script to do what you need.

14th October, 2016

ahuggins left a reply on CSRF Token Not Received • 4 months ago

Are you using the web middleware?

ahuggins left a reply on Overriding Package Route • 4 months ago

I think if you set up the same route in your route file, it will override the one in the package. So if the package registers a route like:

Route::get('special/package/route, [email protected]');

Simply add something like this in your (assuming) web.php routes file:

Route::get('special/package/route, [email protected]');

The route has to match exactly, but you can send it wherever you want. I am pretty sure this works.

ahuggins left a reply on CSRF Token Not Received • 4 months ago

how are you submitting the form, via ajax? are you sure the token is getting sent in the data variable?

13th October, 2016

ahuggins left a reply on Best Web Hosting? • 4 months ago

If you are using Laravel, you should feel solid using Digital Ocean, and if you are not interested in provisioning your own servers as much, Check out forge.laravel.com and see if that fits your needs. Forge will provision and install a git repo on a virtual server provided by Digital Ocean (you have to pay DO for hosting and for Forge, but IMO, it's totally worth it).

Also, you can host more than one site on a virtual server and Forge makes that super easy.

ahuggins left a reply on HighCharts And Laravel 5.2 • 4 months ago

You should also verify that the piechart.js is reachable.

Go to your site url http://path/of/your/site/js/piechart.js if that shows your code, then you should be good, then I think it's the order of the script files.

ahuggins left a reply on HighCharts And Laravel 5.2 • 4 months ago

Shouldn't the piechart.js come after exporting.js like:

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
 <script type="text/javascript" src={{asset('js/piechart.js')}}></script>

ahuggins left a reply on CLI - Connect To DB With Prompted Credential • 4 months ago

yes you can do it, you would have to open the .env file and probably use regular expressions to identify the lines you want to replace. Then write the file.

ahuggins left a reply on URL Helper Vs. Not • 4 months ago

Are you running your site with php artisan serve ?

I have seen issues where the path to the public directory is included in http://localhost/project/public and I think that would cause issues with not using the url helper. So if you used homestead or valet to serve your site, I think it would work fine.

ahuggins left a reply on Adding UIKit To Spark Laravel App • 4 months ago

Looks like it should work.

12th October, 2016

ahuggins left a reply on Can Routes Be Reloaded/refreshed From A Controller? • 4 months ago

What is in your custom file? and what does your Artisan command do?

ahuggins left a reply on Can Routes Be Reloaded/refreshed From A Controller? • 4 months ago

can you provide more info on the issue? It is not clear to me what the issue is.

You are adding a new page via a gui, you submit the new page, the page is created, then you are redirected somewhere...when are you needing the routes refreshed? And why is it not currently working?

ahuggins left a reply on About Laravel And Bootstrap • 4 months ago

I usually look to some of the theme sites out there like WrapBootstrap.com. For really low costs you can buy a theme and then you just have to make it work with Laravel (Blade). If you are wanting to design/code your own, there are sites out there. Lynda.com might have some (and might be available free to you via your local library), Tuts+ probably, or some blogs.

This looks it might have everything you want to know about Bootstrap: https://www.youtube.com/watch?v=59cIRELecI0

ahuggins left a reply on About Laravel And Bootstrap • 4 months ago

You will build your front end and it will become "Views", the views are covered in the Laravel Fundamentals course. The front end can be anything, bootstrap, foundation, material design, any CSS framework really. Same with JS, the front-end is whatever you want it to be...or I like to think of views as simply formatted data. It doesn't even have to be HTML/CSS/JS...could just return JSON, or XML.

ahuggins left a reply on Can Routes Be Reloaded/refreshed From A Controller? • 4 months ago

If you just want to do it in the controller use the Aritsan facade to fire of the command you created.

ahuggins left a reply on Can Routes Be Reloaded/refreshed From A Controller? • 4 months ago

If your new page is saved to a DB using Eloquent, you can register an Eloquent Event, and call the Artisan command when the Eloquent event is fired.

https://laravel.com/docs/5.3/eloquent#events

https://laracasts.com/lessons/model-events

11th October, 2016

ahuggins left a reply on Scheduler Changed • 4 months ago

I think technically the cron command needs six astericks/places. like this:

$schedule->command('email:ordersend')->cron('*/5 * * * 1 *');

Usually cron only has five, but there is another option available here that requires the sixth, unless that has been changed.

Edit Your Profile
Update

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