ekpono

Web Developer at Sophtcode

Experience

3,720

0 Best Reply Awards

  • Member Since 3 Weeks Ago
  • 31 Lessons Completed
  • 0 Favorites

12th October, 2018

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

I talked to namecheap support, they gave me working port. @Cronix @D9705996 Thanks so much guyz. With selfless people like you guyz, i can build anything. It makes me want to give more to the community

11th October, 2018

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

yes .. it supposed to be sent via phone. But am not getting the code.

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

Though the mailgun account is not verified Am still getting this when verifying

An error occurred while attempting to send your verification code, please try again. Contact Support if the issue persists.

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

[[email protected] public_html]$ server
-bash: server: command not found

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

Have switch to mailgun

λ nmap -Pn -pT:25 smtp.mailgun.org
Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-11 23:42 W. Central Africa Standard Time
Stats: 0:00:06 elapsed; 0 hosts completed (0 up), 0 undergoing Host Discovery
Parallel DNS resolution of 1 host. Timing: About 0.00% done
Nmap scan report for smtp.mailgun.org (35.161.201.187)
Host is up (0.45s latency).
Other addresses for smtp.mailgun.org (not scanned): 52.26.154.214
rDNS record for 35.161.201.187: ec2-35-161-201-187.us-west-2.compute.amazonaws.com

PORT   STATE SERVICE
25/tcp open  smtp

Nmap done: 1 IP address (1 host up) scanned in 8.14 seconds

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

i have ssh into my server and perform the same command but am getting -bash error

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

i'm getting this

 nmap -Pn -pT:2525 smtp.mailtrap.io
Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-11 23:32 W. Central Africa Standard Time
Nmap scan report for smtp.mailtrap.io (34.194.188.188)
Host is up (0.19s latency).
Other addresses for smtp.mailtrap.io (not scanned): 34.199.205.108 52.203.151.210
rDNS record for 34.194.188.188: ec2-34-194-188-188.compute-1.amazonaws.com

PORT     STATE SERVICE
2525/tcp open  ms-v-worlds

Nmap done: 1 IP address (1 host up) scanned in 7.63 seconds

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

:( :( I'm getting this

 nmap -Pn -pT:2525 stmp.mailtrap.io
Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-11 23:30 W. Central Africa Standard Time
Failed to resolve "stmp.mailtrap.io".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 1.16 seconds

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@D9705996 thanks so much for your reply. I have hosted the site on namecheap. I want it that when a user signsup on the platform I will get a notification to follow up the user base on the information given to me on the platform. I am using mailtrap (though i have tried mailgun, gmail and still getting the same error) so i can get the email. I also intend to automatically forward the mail to [email protected]

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@D9705996 what should I do now? I am using shared hosting by the way. How can i resolve this

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@Cronix mailgun is not sending verification code to my phone. That's where am stuck

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

Still getting this. Connection could not be established with host smtp.mailtrap.io [Connection refused #111]

MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=25 MAIL_USERNAME=55cd6ac6e**e7bc MAIL_PASSWORD=ee968240**24b3 MAIL_ENCRYPTION=tls

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@D9705996 not still working

MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=25 MAIL_USERNAME=55cd6ac6e5e7bc MAIL_PASSWORD=ee968240f524b3 MAIL_ENCRYPTION=tls

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@Cronix thanks for the clearification. I want to forward the mail from mailtrap to [email protected] At least i get notifications from there. @Cronix what the best option can you prefer. I need this up and running soonest. Thanks

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

@D705996

Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-11 22:09 W. Central Africa Standard Time
Nmap scan report for www.koboaccountant.com (199.188.200.47)
Host is up.
rDNS record for 199.188.200.47: server239-2.web-hosting.com

PORT     STATE    SERVICE
2525/tcp filtered ms-v-worlds

Nmap done: 1 IP address (1 host up) scanned in 16.55 seconds

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

Still unable to send through mailtrap. Have installed nmap but in my command line, it doesn't recognize it.

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

I am getting command not found in all the 3 commands

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

On ssh it is am having $ nmap -Pn -Pt:2525 koboaccountant.com -bash: nmap: command not found

ekpono left a reply on Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

.env MAIL_ENCRYPTION=NULL

I want to receive the main in [email protected] What other options do I have?

ekpono started a new conversation Connection Could Not Be Established With Host Smtp.mailtrap.io [Connection Refused #111] • 4 days ago

Connection could not be established with host smtp.mailtrap.io [Connection refused #111] on live server. Here is my credentials

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=my-username
MAIL_PASSWORD=mypassword

Please help out it is urgent. Have cleared config. Have also optimize:clear

ekpono left a reply on Unable To Connect To Host 127.0.0.1 Because Access Was Denied. • 5 days ago

Your username and password may be wrong. Cross check your db details

ekpono left a reply on TokenMismatchException • 5 days ago

put this in the head tag <meta name="csrf-token" content="{{ csrf_token() }}">

3rd October, 2018

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

Finally used event listener

App\Listener\UpdateLastLoginAt

<?php

namespace App\Listeners;

use Illuminate\Auth\Events\Login;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Carbon\Carbon;
class UpdateLastLoginAt
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  Login  $event
     * @return void
     */
    public function handle(Login $event)
    {
        $event->user->last_login_at = Carbon::now();
        $event->user->save();
    }

App\Providers\UpdateLastLoginAt

<?php

namespace App\Providers;

use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
        'Illuminate\Auth\Events\Login' => [
            'App\Listeners\UpdateLastLoginAt',
    ],
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}

That worked for me

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

        'name', 'email', 'password','gender','last_login_at', 'last_login_ip',
    ];

yes.

last_login_at is used consistently.

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

Users Table

        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->datetime('last_login_at')->nullable();
            $table->string('last_login_ip')->nullable();
            $table->rememberToken();
            $table->timestamps();
        });
    }

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

AuthenticatesUser traits
public function authenticated(Request $request, $user) 
    { 
        $user = Auth::User();
        if ($user != null && $user != "")
            {
                $loginedIn = User::where('id', Auth::id())->update(['last_login_at' => Carbon::now()]);
            }
    }

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

I want to get last logged in user time.

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

yes.. i meant to say AuthenticatesUsers trait

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

Yes. am using default laravel auth command

2nd October, 2018

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

        $user = auth()->user();
        $user->last_login = Carbon::now();
        $user->save();
    }

ekpono left a reply on I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

            $table->increments('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->datetime('last_login')->nullable();
            $table->rememberToken();
            $table->timestamps();
        });

ekpono started a new conversation I Want To Get Last Logged In Date From My User. The Database Isn't Updating • 1 week ago

Here is my table Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email')->unique(); $table->string('password'); $table->datetime('last_login')->nullable(); $table->rememberToken(); $table->timestamps(); });

AuthenticatesController public function authenticated(Request $request, $user) { $user = auth()->user(); $user->last_login = date('Y-m-d H:i:s'); $user->save(); } The table is still empty when i login My user model has included last_login in fillable

ekpono left a reply on Form Submition To The Wrong Route • 1 week ago

If I were you I would change <form method="POST" action="{{route('login')}}"> to action="/login" or any other route just to test

26th September, 2018

ekpono left a reply on User Id Not Found • 2 weeks ago

It is working..!!!! Thanks alot Sir. No validation for user_id

ekpono left a reply on User Id Not Found • 2 weeks ago

This is the method.

public function createCompany($data)
   {
       // Request has been created for validation
       if(is_array($data))
            $data = (Object) $data;


       return $company = Company::create([
           'id' => $this->generateUuid(),
           'user_id' => \Auth::user()->id,
           'name' => ucfirst($data->name),
       ]);

       if(! $company) {
           return null;
       }
    }

This is the controller

    public function store(CompanyRequest $request)
    {
        $company = $this->company->createCompany($request);

        return response()->json(['status' => 'Company created successfully']);
    }

ekpono left a reply on User Id Not Found • 2 weeks ago

Thanks for the @Cronix thanks for the code tag link.

ekpono left a reply on User Id Not Found • 2 weeks ago

   ```return $company = Company::create([
       'id' => $this->generateUuid(),
       'user_id' => \Auth::user()->id,
       'name' => ucfirst($data->name),
   ]);

ekpono left a reply on User Id Not Found • 2 weeks ago

Still getting

The user id field is required.

Here is my request class public function rules() {

    return [
        'name'      => 'required',
        'user_id' => 'required',
    ];
}

public function messages()
{
    return [
        'name' => 'Provide a valid work email address',
        'user_id' => 'User field missing'
    ];
}

ekpono left a reply on User Id Not Found • 2 weeks ago

This is my model

class Company extends Model { protected $fillable = [ 'id', 'name', 'user_id'];

}

id name isActive user_id created_at updated_at deleted_at

ekpono started a new conversation User Id Not Found • 2 weeks ago

Am trying to get the authenticated user_id to my database. have passed it in my repository but am still getting user_id not found when i submit the form. Repository 'user_id' => \Auth::user()->id, 'name' => ucfirst($data->name), Error "SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into companies (id, name, updated_at, created_at) values (936be778-7eeb-514e-aa55-ac9ad22f8ba2, Ekpono Ambrose, 2018-09-26 17:15:44, 2018-09-26 17:15:44))

24th September, 2018

ekpono left a reply on Data Retrieving Problem • 3 weeks ago

`When facing errors like this. First return the data, create a route for it, and see the content in json format if there is any.

In your controller:

$inputs = Input::all();

return $inputs;

See if you anything will be returned`

Edit Your Profile
Update

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