joshuafranks

Full Stack Web Developer at ELFRA

Experience

9,580

1 Best Reply Awards

  • Member Since 11 Months Ago
  • 88 Lessons Completed
  • 0 Favorites

14th June, 2018

joshuafranks left a reply on Does RefreshDatabase Rollback Changes After Each Test Of At The End Of All • 1 week ago

RefreshDatabase resets your database after each test to eliminate the risk of data interference.

You can read more about the RefreshDatabase trait in the documentation.

https://laravel.com/docs/5.6/database-testing

joshuafranks left a reply on Convert A String To A Integer • 1 week ago

If you're wanting to convert it to a Carbon instance, you can just use Carbon's parse() method:

Carbon::parse("2014-10-20")

That will return a Carbon instance of the date provided.

3rd June, 2018

joshuafranks left a reply on Laravel 5 Ajax 404 Not Found Error • 2 weeks ago

The issue he is having isn't with the read method; the screenshot shows that he's posting to the update() method. I'm going to assume that the function is within a Blade template file, in which case - this line is probably what's causing your issue.

$.post("{{ URL('peoples/"+id+"/update') }}"

Try it without the URL helper.

$.post("peoples/" + id + "/update")

joshuafranks left a reply on Laravel 5 Ajax 404 Not Found Error • 2 weeks ago

What file is that load function in?

joshuafranks left a reply on Laravel 5 Ajax 404 Not Found Error • 2 weeks ago

You haven't shown us a read() method in your PeopleController.

joshuafranks left a reply on $this->user_id Not Executing • 2 weeks ago

If you're not sure how to access the index() method, then you're really misunderstanding what a Controller is and the purpose it serves in your application. I recommend reading through the Laravel documentation to get a better understanding of what you should be doing.

https://laravel.com/docs/5.6/controllers

30th May, 2018

joshuafranks left a reply on Mailtrap.io Error • 3 weeks ago

Try running php artisan config:cache.

29th May, 2018

joshuafranks left a reply on Why Do We Need Other Package To Test? • 3 weeks ago

Test Driven Development is far more reliable and effective than manual testing. By having a comprehensive test suite, you give yourself the peace of mind that everything is covered. You can write all sorts of tests that cover a number of eventualities and reliably assert that your code works.

This is especially useful when refactoring your code. When you make changes, you can run your tests and ensure that everything still works as you expect. Even subtle changes could have an adverse affect on other parts of your application and it's easy for things to go unnoticed.

The authentication that comes out of the box with Laravel is already reliable, but as your application grows and you start writing your own features - tests are incredibly useful. It's a pretty broad subject, but there are plenty of resources out there that can help you learn.

Another advantage, of course, is that you can drive out the core features of your application without any front-end work at all.

21st May, 2018

joshuafranks left a reply on Enterprise Applications • 1 month ago

Give this episode of The Laravel Podcast a listen. Taylor, Jeff and Matt Stauffer talk about Laravel "enterprise" applications and some common misconception associated with them.

http://www.laravelpodcast.com/5fc5650b

17th May, 2018

joshuafranks left a reply on Include Custom CSS • 1 month ago

This may not help at all, but perhaps try clearing your application cache (php artisan cache:clear) and restarting your server.

16th May, 2018

joshuafranks left a reply on Laravel Authorization For Approving A Thread • 1 month ago

@rvp04 so you never used php artisan make:auth?

joshuafranks left a reply on Laravel Authorization For Approving A Thread • 1 month ago

Are you using the authentication services that come out of the box with Laravel?

4th April, 2018

joshuafranks left a reply on Laravel Authentication Not Persisting • 2 months ago

Are you sure you don't accidently have Auth::logout() anywhere in your views?

3rd December, 2017

joshuafranks left a reply on Sort V-for List With Calculated Field • 6 months ago

How are you fetching the data in the first place?

Edit Your Profile
Update

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