jonjie

Software Developer at Laguna

Experience

9,910

0 Best Reply Awards

  • Member Since 6 Months Ago
  • 90 Lessons Completed
  • 0 Favorites

23rd May, 2018

jonjie left a reply on Where Function In BelongsToMany Problem • 1 day ago

Have you try to use just Node::with('tags')->paginate(12); ?

22nd May, 2018

jonjie left a reply on Namespace Hierarchy In PHP • 2 days ago

@Cronix Haha Great. Very nice and simple exaplanation. I gonna order it from shortest too so it will be cute haha

jonjie started a new conversation Namespace Hierarchy In PHP • 2 days ago

Is there any issue or conflict about the hierarchy of using namespace? I mean if I have 5 imported class, should I have to arrange them? Or is it not necessary?

Is there anything to consider with the example below? Or is there any different? How about in terms of best practices?

Example:

use App\User; use App\UserProfile; use App\Post; use App\Comments;

VS

use App\Post; use App\User; use App\UserProfile; use App\Comments;

16th May, 2018

jonjie left a reply on Why Bootstrap 4? • 1 week ago

Hi @topvillas . Aside from they don't support IE9 and below and iOS 6 and below, why do you think we don't need to use bootstrap 4?

jonjie started a new conversation Why Bootstrap 4? • 1 week ago

Hi guys. I know laracasts has many awesome developers that can answer this question so I decided to asked it here. So ... yah, why do you think we need to use bootstrap 4?

27th April, 2018

jonjie left a reply on Laravel Is A Giant Waste Of Time • 3 weeks ago

Haha! Two years ago from now, but hey. You know what, Laravel is so worth it to learn. Once you get it, you're just like driving a car using your imagination, where you can go anywhere you want ;)

jonjie left a reply on Where Are You All From? • 3 weeks ago

Laguna, Philippines :)

16th April, 2018

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

Great! I'll try it now. Please wait for my response about the result. Thanks a lot!

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

Hi @Cronix . Thanks. One more thing, is it possible to use [email protected] even if I set the .env file to [email protected]? I mean with different domains? Thanks again.

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

Hi @Cronix . Thanks for your answer. However, if I use [email protected] in .env file and [email protected] in my controller, will this work? Also, is that artisan config:clear or php artisan config:clear? I've read some of the questions about this command, and some say that after they run the command, their system brokes or getting errors.

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

Hi @bobbybouwmann . MAIL_FROM_ADDRESS is not available in .env file. BTW I'm using laravel v5.1. And what if I have a different form and I want the from to be different, is that possible?

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

I noticed that the from when you received the email is the username in .env file. What if I have a different form and I want it to have a different from?

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

I've also tried to edit the mail.php in config folder but still the same

jonjie left a reply on Mail From Not Displaying The Correct Email • 1 month ago

Hi @bobbybouwmann .. Thanks for your reply. But, Yes, I'm really sure.

jonjie started a new conversation Mail From Not Displaying The Correct Email • 1 month ago

Hi Guys. I've setup my .env file with a different email from using Mail::send(), so basically, What I have is:

.env

[email protected]

EvaluationController

Mail::send(...., function($m){
    $m->from('[email protected]', 'jonjie');
});

But the email displaying is still the gmail one. Why is that? How can I solve it?

11th April, 2018

jonjie left a reply on Pagination Doesn't Works • 1 month ago

Try this:

$search_results = MagazineSubcategory::whereHas('products', function ($query) {
            return $query->where('name', 'wiertarki');
        })->orderBy('id', 'desc')->paginate($liczba_paginacji);

10th April, 2018

jonjie left a reply on Pagination Doesn't Works • 1 month ago

When I saw your code:

 @foreach($search_results as $search_result)
                                @foreach ($search_result->products as $result)
                                Extracting data...
                                @endforeach
                            @endforeach
{{ $search_results->links() }}

I'm expecting the you're displaying the products. Have you tried this code?

 @foreach($search_results as $search_result)
     // Extracting data ...
 @endforeach
{{ $search_results->render() }}

27th March, 2018

jonjie started a new conversation How To Setup Gulp For Testing In PHP? • 1 month ago

Hi guys. How can I setup Gulp for the PHP testing that Jeff's uses here on his tutorial so I can just save the file then the pop up appears:

https://laracasts.com/series/code-katas-in-php/episodes/1

Thanks!

22nd March, 2018

jonjie left a reply on Port 80 Getting Added To URLs After POST • 2 months ago

Hi @WallyJ .. have you tried to add a name to your route? and use it instead?

19th March, 2018

jonjie left a reply on Port 80 Getting Added To URLs After POST • 2 months ago

Hi @WallyJ .. Can we see your route for the post?

jonjie left a reply on Check If An Email Was Sent • 2 months ago

Hi @bashy . Can you link the Mail::failures() method here? Thanks

jonjie left a reply on Mail Without Acknowledge? • 2 months ago

Hi @RachidLaasri . Can you provide the link for Mail::failure()?

16th March, 2018

jonjie left a reply on Restrict File Download From Storage Directory • 2 months ago

Hi @Snapey . I think that's a nice idea. But, can you give us an example? Thanks

12th March, 2018

jonjie started a new conversation Is Is Fine To Use Localhost For DB_HOST In Production? • 2 months ago

Hello. I'm just wondering if it's ok to just use localhost setup in DB_HOST when the app is in production/live? Thanks.

P.S. Im using Laravel 5.1 here.

2nd March, 2018

jonjie left a reply on Is It Safe To Add `stream` Key In Mail.php In Laravel? • 2 months ago

Hi @lostdreamer_nl . Your explanation is very clear. Thanks a lot :)

jonjie left a reply on Is It Safe To Add `stream` Key In Mail.php In Laravel? • 2 months ago

@Janaka Hi, Thank you for the response. But, I'm really thinking about what @Snapey said on his comment. Hmm very interesting

jonjie left a reply on Is It Safe To Add `stream` Key In Mail.php In Laravel? • 2 months ago

@Snapey Hi, Your comment is so deep, and it is very interesting for me. But, may I request a more specific explanation for this? Sorry, I didn't get what you're trying to say.

Thanks man.

1st March, 2018

jonjie started a new conversation Is It Safe To Add `stream` Key In Mail.php In Laravel? • 2 months ago

Hi. I have research about it when sending an email to gmail. This solves the problem that when you send an email without this code, it is not sending the email or sometimes the email will go to the spam folder, but when you include it, the email is sending perfectly. Is this code safe? Do this code has advantage and disadvantage? Do this code affects the application?

'stream' => [
        'ssl' => [
            'allow_self_signed' => true,
            'verify_peer' => false,
            'verify_peer_name' => false,
        ],
]

14th February, 2018

jonjie left a reply on Issue When Sending An Email? • 3 months ago

Hi @Snapey . I'll try to apply these good practices. Thanks :)

jonjie left a reply on Issue When Sending An Email? • 3 months ago

Yeah, indeed. Here's my mail section:

MAIL_DRIVER=smtp
MAIL_HOST=mail.mywebsite.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls

13th February, 2018

jonjie started a new conversation Issue When Sending An Email? • 3 months ago

Hi guys. I know you can help me with this problem. I did a lot of research through internet but I didn't found the solution. I'm trying to send a confirmation email using Mail::send() in laravel 5.1, I don't want to use any third party like mailgun or mandrill. The problem with this is all of the confirmation of the users is in their spam folder in gmail, and trash folder in outlook. Sometimes they didn't receive the confirmation. Why is that? Do you have any suggestion or idea with this?

Thank a lot, Jonjie

12th February, 2018

jonjie left a reply on Undefined Variable In Partial View • 3 months ago

It helps me analyzed my code haha

25th January, 2018

jonjie left a reply on Returns A 404 Error When Linking Into A File • 3 months ago

My pdf file contains hash sign (#) that treats the file as id not the exact file name. Example, if you have a file name like Examination #1.pdf, just remove the # sign so it will not be treated as an ID.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 3 months ago

Hi @deansatch . Yes, I tried to remove the public. But still getting the error. Anyway, I know the solution now :)

24th January, 2018

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

@deansatch school is the name of my project folder.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

Oh Sorry about that, that's exactly how it looks like in my setup.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

Indeed. I've also include my pdf files in public directory.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

Yes I've already tried to rename it without spaces. '/public' folder is needed here because all of my pdf files are stored there. The full url looks like this: http://localhost/school/public/files/1/PDF/exams/fillable/ExaminationPart1.pdf

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

URL Encoding is not working. If I try to paste the result in the url bar, It returns a 404 error.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

Hi @Snapey . How can I do that? Can you give me an example? thanks.

23rd January, 2018

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

@deansatch No I haven't. I just want to access the exact pdf file without any route. Because sometimes I'm having a problem when viewing pdf file if I use <object>/<iframe>.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

@deansatch Yes. I've already created the path, and put the file in it.

jonjie left a reply on Returns A 404 Error When Linking Into A File • 4 months ago

Hi @deansatch , thank you for quick response. Please see the update. Thanks

jonjie started a new conversation Returns A 404 Error When Linking Into A File • 4 months ago

Hi guys, I'm trying to visit a specific pdf file in my laravel app. but it returns an error that's telling me to create a route. I think it's because of the path I'm giving. Do you have any idea to solve this? Please see my code below for your reference:



<iframe src="{{ $exam->file_path }}" frameborder="0"></iframe>


I'm basically returning $exam from my controller.

Edit Your Profile
Update

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