wowrudy

wowrudy

Member Since 4 Years Ago

Experience Points 5,805
Experience Level 2

4,195 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 58
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

27 Nov
1 year ago

wowrudy left a reply on Elixir : Delete All Comments In Js And CSS Files

@kossa i used laravel 5.5, in which file i should put this code

02 Mar
3 years ago

wowrudy left a reply on Accidentally Deleted Everything In /home

You can launch new server and set it up again, because linode only charge you per hour, so you will not billed double.. and after everything running well of course you can delete your old server

this is my mine folder of forge except my domain folder

drwxr-xr-x  22 forge forge  4096 Mar  2 16:19 .
drwxr-xr-x   3 root  root   4096 Feb 18 11:48 ..
-rw-------   1 forge forge 12216 Mar  2 20:14 .bash_history
-rwxr-xr-x   1 forge forge  3106 Feb 18 11:48 .bashrc
drwx------   3 forge forge  4096 Feb 18 13:05 .cache
drwxrwxr-x   3 forge forge  4096 Feb 18 13:05 .config
drwxr-xr-x   2 forge forge  4096 Mar  2 16:19 .forge
-rw-rw-r--   1 forge forge    55 Feb 18 11:53 .gitconfig
drwxrwxr-x   3 forge forge  4096 Feb 18 13:05 .local
drwxrwxr-x 832 forge forge 32768 Feb 18 17:05 .npm
-rwxr-xr-x   1 forge forge   140 Feb 18 11:48 .profile
drwxr-xr-x   2 forge forge  4096 Feb 18 11:48 .ssh
-rw-------   1 forge forge  5436 Mar  1 19:20 .viminfo

and if you use backup service you can restore your server from your backup.

01 Mar
3 years ago

wowrudy started a new conversation Remove Installed SSL From Forge

Hi, i created letsencrypt ssl from forge, and now i want to remove them from forge site, i'm already delete all folder in /etc/nginx/ssl but it not removed in forge site.. how to remove installed ssl from forge site ?

wowrudy left a reply on Let's Encrypt

@Rjs37 i want to ask the same question..

wowrudy left a reply on Remove SSL From Forge

@divanoli Hi, i deleted folder in /etc/nginx/ssl but in forge admin it still said my ssl activated in that folder

wowrudy left a reply on Let's Encrypt Multiple Sites

I found the right one, and now i had another problem, i used cert.pem and privkey.pem in my nginx ssl configuration, and mysite https working but i got 502 bad gateway error

29 Feb
3 years ago

wowrudy left a reply on Let's Encrypt Multiple Sites

yes it works, but now i'm a bit confused because i have folder like this :

domain.com
domain.com-0001
domain.com-0002

which folder is the correct one ? and how to remove my old license generated by forge ?

wowrudy left a reply on Let's Encrypt Multiple Sites

yes and thanks so far to guide me, but i got permission denied when i want to check these folder, and i dont have root user with forge instalation. i tried sudo cd /etc/letsencrypt/live/ but it said no sudo command for cd. what should i do ? i need to check these folder to make sure i have correct path

wowrudy left a reply on Let's Encrypt Multiple Sites

Finally i succeed to create certificate but don't have any clue the next step, i only got this message

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/domain.com/fullchain.pem. Your cert will expire on 2016-05-29. To obtain a new version of the certificate in the future, simply run Let's Encrypt again.

  • If you like Let's Encrypt, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le

wowrudy left a reply on Let's Encrypt Multiple Sites

I tried create manual from ssh and i got same error

Failed authorization procedure.a.mysite.com(http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 454 parts

  • The following errors were reported by the server:

    Domain: a.mysite.com Type: unauthorized Detail: Error parsing key authorization file: Invalid key authorization: 452 parts

26 Feb
3 years ago

wowrudy left a reply on Let's Encrypt Multiple Sites

my case is same with you, i have separated laravel installation on multiple subdomain. but why i need one certificate instead of separating certificate each subdomain because i had a problem with node server

var https = require('https'),     
    fs =    require('fs');        

var options = {
    key:    fs.readFileSync('/etc/nginx/ssl/mysite.com/55325/server.key'),
    cert:   fs.readFileSync('/etc/nginx/ssl/mysite.com/55325/server.crt')
};

var server = https.createServer(options);
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe(['mysite-channel','a-mysite-channel']);

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
});

server.listen(3000);

i got this error in a.mysite.com

WebSocket network error: OSStatus Error -9807: Invalid certificate chain

wowrudy left a reply on Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate

i check this error and this is the error message

Failed authorization procedure.a.mysite.com(http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 454 parts

wowrudy left a reply on Let's Encrypt Multiple Sites

@Rjs37 i had the same problem. did you solve that ?

wowrudy left a reply on Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate

on forge i have multiple site :

mysite.com a.mysite.com b.mysite.com c.mysite.com

and create new certificate mysite.com,www.mysite.com,a.mysite.com i added a.mysite.com in domain column and i got this error We were unable to obtain a LetsEncrypt SSL certificate on your server

25 Feb
3 years ago

wowrudy started a new conversation Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate

Hi, i used multiple subdomain for my site and activate let's encrypt ssl.

  1. my question is how to activate let's encrypt ssl for all my subdomain with only one certificate? i have sub1.mysite.com, sub2.mysite.com, sub3.mysite.com

  2. what is clone certificate in ssl menu ?

22 Feb
3 years ago

wowrudy left a reply on Node Socket.js Not Working With Https

update : it's because file is owned by root, and i use user 'forge' i tried sudo node socket.js and working. but how to run this server without sudo ? because i want to run this with daemon using forge.laravel.com

21 Feb
3 years ago

wowrudy left a reply on Node Socket.js Not Working With Https

@StormShadow no, i still stuck at this

19 Feb
3 years ago

wowrudy left a reply on Node Socket.js Not Working With Https

i update my server, and when i run node socket.js i got this error message

server

var https = require('https'),     
    fs =    require('fs');        

var options = {
    key:    fs.readFileSync('/etc/nginx/ssl/mydomain.com/12345/server.key'),
    cert:   fs.readFileSync('/etc/nginx/ssl/mydomain.com/12345/server.crt')
};

var server = https.createServer(options);
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe('app1-channel');

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
    console.log(channel + ':' + message.event);
});

server.listen(3000);

error message

fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/etc/nginx/ssl/mydomain.com/12345/server.key'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.<anonymous> (/home/forge/mydomain.com/socket.js:6:16)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:140:18)

i check permission

lrwxrwxrwx 1 root root   53 Feb 18 16:21 server.crt -> /etc/letsencrypt/live/mydomain.com/fullchain.pem
lrwxrwxrwx 1 root root   51 Feb 18 16:21 server.key -> /etc/letsencrypt/live/mydomain.com/privkey.pem
18 Feb
3 years ago

wowrudy left a reply on Node Socket.js Not Working With Https

server

var server = require('http').Server();
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe('app1-channel');

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
});

server.listen(3000);

view

var socket = io.connect( '//'+window.location.hostname+':3000');

it's working if use http, but not working if i use https on my site

wowrudy started a new conversation Node Socket.js Not Working With Https

Hi, i want to make realtime application. i follow this guide https://laracasts.com/discuss/channels/general-discussion/step-by-step-guide-to-installing-socketio-and-broadcasting-events-with-laravel-51?page=1 and everything works on my server, but after activate ssl for my domain this not work

i got this error in my console Failed to load resource: Could not connect to the server.

how to solve that ?

08 Nov
3 years ago

wowrudy left a reply on Redirect After Session Expired

Thankyou @mstnorris for your answer, it can solve my problem right now..

i must set config/session.php

'lifetime' => 120,

and in javascript i must write exact value with my php configuration 120 minute * 60 second * 1000 milisecond = 7.200.000

$(function() {
    // Set idle time
    $( document ).idleTimer( 7200000 );
});

but any simple php solution like this ?

'lifetime' => 120,
'expired-session-redirect' => {{ url('auth/login') }} 

wowrudy left a reply on How To Put License To My Web Application ?

@shez1983 No, actually i copy and paste my answer to my original question to make it clear what i asked.. :) (sorry if it make you confuse)

maybe VPN is the best approach right now.. i just searching posibility to solve this problem as my question.. i just hold my question cause i still research this..

05 Nov
3 years ago

wowrudy started a new conversation Redirect After Session Expired

How to redirect user to login page automaticly if their session expired ? i mean i don't want waiting user click some button or refresh manually

wowrudy left a reply on Custom 404 Error Page

@ciby remember always to tick the answer if your asked question answered

wowrudy left a reply on How To Put License To My Web Application ?

@mstnorris this is example what i need : my client don't accept their employee can access company apps at home, but some of them allowed to access this apps from home. this is why i need restrict per device. maybe you have another idea ?

@robgeorgeuk yes like mstnorris said, they dont have static ip address anyway..

for geolocation i know i can using php to get ip address and find country/city but what i need is to restrict apps usage in some location, thats why i need latitude and longtitude. but popup browser to allow track their location is annoying, and all employee who using this apps must be agree to track their location to company security issue..

this is closed apps for internal company only

wowrudy started a new conversation How To Put License To My Web Application ?

Hi, i create a web application for my client company, and they want user can access this apps only from registered pc, so others employee cannot access this apps from their phone or laptop.. how to achieve that ?

and my client want to track their employee login via geolocation (latitude and longtitude). i triend html 5 geo but it always notice user to allow/accept first, how to hide that ? so all user login automaticly accept to allow share their location ?

Need advice.. Thanks

03 Nov
3 years ago

wowrudy left a reply on Which OS Are Most Laravel Developers Using?

OS-X For Development Windows For Gaming Ubuntu For Production Server

wowrudy started a new conversation Socket.IO 2 Project On The Same Server

Hi, i had some trouble with implement socket.io i used same project for 2 domain in one vps server..

The problem is when i emit data then it shared to all project in this server.

i don't want they share same connection because there are 2 differenct company using same application

sorry for my bad english..

19 Oct
3 years ago

wowrudy left a reply on Upload Laravel 5 In Server

what are you asking about ? absolutely you can use forge to handle all server configuration for you.

16 Jun
3 years ago

wowrudy left a reply on Published My First Book

@milon Good Luck.. keep your good work..

wowrudy left a reply on Which Package Is Best For Roles & Permissions

i used romanbican roles package.. and it's awesome

03 Jun
3 years ago

wowrudy left a reply on How The Best Way To Make This Relation ?

@umefarooq but they are not user, maybe i can use related_user table for parent table for master customer and supplier. thanks, now i got the idea

01 Jun
3 years ago

wowrudy left a reply on How The Best Way To Make This Relation ?

@umefarooq but i cannot make a relation between inventory and my form ?

so how to know who is the supplier or customer ?

$stock->purchasing->supplier->name

or

$stock->sales->customer->name

26 May
3 years ago

wowrudy left a reply on How The Best Way To Make This Relation ?

@umefarooq but i still do not know which form who make my inventory change..

i had table :

  • purchasing

  • purchasing_detail

  • purchasing_retur

  • purchasing_retur_detail

  • sales

  • sales_detail

  • sales_retur

  • sales_retur_detail

  • stock

  • stock_inventory

  • inventory_type

with your table i know what type "purchasing or sales" who make my stock change, but i dont have relation to that table.. am i need to add column purchasing_detail_id, sales_detail_id, purchasing_retur_detail_id, sales_retur_detail_id on my stock_inventory_table ?

27 Apr
3 years ago

wowrudy started a new conversation How The Best Way To Make This Relation ?

Hi what is the best way to make a relation on this case: Hi, i have table stock, what should i do to design this attribute ? ex : item_id : int foreign key Item -> id quantity : int ... ... ...

i want to trace who make stock plus or minus in stock table

i had 4 for who has relation with table stock

purchasing = + stock retur purchasing = - stock sales = - stock retur sales = + stock

25 Apr
3 years ago

wowrudy left a reply on There Is Any Full Tutorial About Laravel 5 Package ?

@martinbean yes but i still confusing about workflow, what should i do at beginning until i can pull my project via composer

wowrudy left a reply on UML For Laravel Project

@mstnorris yes i think you are alright, i tried to manage my team better but now i still search better way to do that.. can you give me example what should i do from start and what should i tell to my developer team to working on project

wowrudy started a new conversation Php Artisan Not Working After Composer Update

Hi, i got same problem like this

https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install/?page=1

i cannot run php artisan command, it show nothing

and if i do composer update i got this error

Script php artisan clear-compiled handling the post-update-cmd event returned with an error                      

i dont have any file on my project :

vendor/compiled.php
storage/framework/compiled.php

or

bootstrap/compiled.php
24 Apr
4 years ago

wowrudy left a reply on UML For Laravel Project

@mstnorris i know how to build activity diagram, use case diagram and ERD, but i confuse to make Class diagram and Sequence diagram for Laravel Project.. i never used before.. i need best practice to learn making them on Laravel Project..

@Peach no, i dont need generator..

wowrudy started a new conversation UML For Laravel Project

Hi, i want to create UML for my laravel project.. so i hope i can work with my friend as a team better..

any suggestion how to do that in best practice ?

wowrudy started a new conversation There Is Any Full Tutorial About Laravel 5 Package ?

i need to build package for my apps for reuse in my other project.. i read laravel 5 docs about package but i still not understand..

i need full tutorial explain about package development by example like jeffrey do usually.. any link or recommendation what should i do ?

18 Feb
4 years ago

wowrudy left a reply on Log Database For Updated And Deleted File

but i don't know how to make it running on L5. im still newbie anyway

wowrudy left a reply on Log Database For Updated And Deleted File

Yes.. something like that..

but there is any package like this on L5 ? because i already started my project using L5..

wowrudy started a new conversation Log Database For Updated And Deleted File

Hi, i need to log old data when updated and deleted from database, because sometimes we need to audit what user doing in my application..

Any suggestion how to achieve that ?

15 Jan
4 years ago

wowrudy left a reply on Is Laravel 5 Already Stable Enough To Start New Projects With Right Now?

yes, i started using it, but some of my package not working.. just wait more few weeks

11 Jan
4 years ago

wowrudy left a reply on Is Laravel 5 Already Stable Enough To Start New Projects With Right Now?

Hi, today is mid January but laravel not yet release.. i want to start my new project with Laravel 5. is it okay to start my project with Laravel 5 ?