Hardie

Hardie

Member Since 4 Years Ago

Experience Points 2,325
Experience Level 1

2,675 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 0
Lessons
Completed
Best Reply Awards 0
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.

06 Nov
3 years ago

Hardie started a new conversation Updating Compser Killed Process In Terminal

Hi, I am updating composer on live server using SSH access but it gives errors like,

================================================================ $ composer require "vinkla/hashids": "^2.1"

composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

================================================================= Can anyone have solution for this ? let me know please.

03 Nov
3 years ago

Hardie left a reply on Encryption Generate Long Key Crypt::encrypt

Hi bobbybouwmann,

I am using "MCRYPT_RIJNDAEL_128" in cipher in app.php.

And using Crypt::encrypt it gives me long encryption which is not relevant so can you suggest me any other which generate a small encryption ?

31 Oct
3 years ago

Hardie left a reply on Encryption Generate Long Key Crypt::encrypt

Hi bobbybouwmann,

I have one problem with this Crypt::encrypt. Suppose I encrypt any id and passed in URL it (URL) will not open directly i.e suppose I open this URL will encrypted id directly in any browser or other system it gives errors.

Can you help me to solve this error ?

Hardie started a new conversation Encryption Generate Long Key Crypt::encrypt

Hi,

I have used Crypt::encrypt for laravel encryption but its generate long encryption of small ids so is there any ways to generate short encryption using Crypt::encrypt

Let me know if any way.

21 Oct
3 years ago

Hardie left a reply on Laravel Composer.phar Not Found

Hi stefanbauer,

I install composer and also update composer,

I have used socialite for login with google but it gives error like,

ClientException in /home/odooonline/public_html/local/vendor/guzzlehttp/guzzle/src/Middleware.php line 69: Client error: 403

Can you suggest any

Hardie started a new conversation Laravel Composer.phar Not Found

Hi,

I am working on my first project in laravel. I have install laravel on live server by host support team now I want to update laravel composer using ssh/terminal, I have tried composer update and composer.phar update command but gives error: "bash composer/composer.phar command not found",

I have checked the folder but I didn't get composer.phar file on any of folder so can I put any compser.phar file in folder and in which folder I have to put it ?

20 Oct
3 years ago

Hardie started a new conversation Decrypt Hash::make(password) Possible?

HI all,

I want to decrypt a password which encrypt by hash::make('password'), so is any way where i can decrypt it to simple text.

please provides a solution.

19 Oct
3 years ago

Hardie left a reply on Register With Google,facebook

Hi all,

I have used laravel socialite for google login, it redirect to google login but after logged In google it unable to retrieves data it gives error like,

ClientException in /home/iproject/public_html/vc-products/etraining/v2/etraining/local/vendor/guzzlehttp/guzzle/src/Middleware.php line 69: Client error: 403

My code, composer.json =============== "laravel/socialite": "~2.0"

App.php

Provider => 'Laravel\Socialite\SocialiteServiceProvider',

aliases => 'Socialize' => 'Laravel\Socialite\Facades\Socialite',

Services.php

'google' => [ 'client_id' => 'CLIENT_ID', 'client_secret' => 'CLIENT_SECRET', 'redirect' => 'URL', ], Controller ================= namespace App\Http\Controllers\front;

use App\Http\Controllers\Controller; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\DB; use App\User; use Socialize; class SocialController extends Controller{

public function __construct(){
    
}
public function index(){

}

public function redirectToProvider()
{
    return Socialize::with('google')->redirect();
}

public function handleProviderCallback()
{
    try {

        $user = Socialize::with('google')->user();
        exit;
    }
    catch (GuzzleHttp\Exception\ClientException $e) {
        dd($e->response);
    }
}

}

============================== Please provide any solution with help me.

16 Oct
3 years ago

Hardie left a reply on Bash Composer Not Found On Live Server

On live server, host support team install laravel on server but i am trying to update composer it doesn't works so can you give any suggestion.

Hardie started a new conversation Bash Composer Not Found On Live Server

Hi,

I am working on my first project in laravel 5 and I have install composer on live server now I need to user socialite on live server so for that i need to update composer ? or I have to uplaod folder direct on live.

I tried for composer update it gives error like "bash- composer command not found"

Please suggest a any way...

15 Oct
3 years ago

Hardie left a reply on Error In Laravel 5 Socialize With Google

Hi danmatthews,

it doesn't works can you please provide any other way ?

Hardie left a reply on Socialite Oauth Google

Hi All,

I have already enable Google+ Api but it not works for me can you please suggest any.

My project brief

laravel 5 "laravel/socialite": "~2.0"

I have tried steps in http://laravel.com/docs/5.0/authentication#social-authentication,

It gives error like,

ClientException in /opt/lampp/htdocs/training_portal/v2/local/vendor/guzzlehttp/guzzle/src/Middleware.php line 69: Client error: 403

public function redirectToProvider() { //return Socialize::with('google')->redirect(); return Socialize::with('google')->scopes(['email'])->redirect(); }

public function handleProviderCallback()
{
    try {
        $user = Socialize::with('google')->user();
    }
    catch (GuzzleHttp\Exception\ClientException $e) {
        dd($e->response);
    }
}
14 Oct
3 years ago

Hardie started a new conversation Error In Laravel 5 Socialize With Google

Hi, I am working on laravel 5 and in login with google it redirect to google app approve and on call back it gives error like,

ClientException in /opt/lampp/htdocs/training_portal/v2/local/vendor/guzzlehttp/guzzle/src/Middleware.php line 69: Client error: 403

And i am working in local so is it problem with local or other can you please give any solution.

Hardie started a new conversation Use Laravel Socialite And Just Update Composer For Socialite Only

Hi, I want to use laravel socialite i.e. login with google and facebook but for that I want to update composer for socialite only Is it possible to update for socialite library or vendor only?

If yes then please suggest a way so I can...

13 Oct
3 years ago

Hardie started a new conversation SocialAuthentication

Hi, I am working on my first project with laravel, currently I am working on laravel 5 version.

I want to add a functionality login with google and I am following steps from laravel.com/socialAuth, is it compulsory to update composer for socialauth.

I don't want to update so will it works without update composer if yes then please provide solution.

Thanks

29 Sep
3 years ago

Hardie started a new conversation Create Vendor Class Object In Laravel 5

Hi, I have include facebook-sdk in vendor folder now I want create class of facebook.php file but I have no idea, So please suggest me a way.

Thanks

Hardie left a reply on Register With Google,facebook

Hi Corez64,

I have used all steps of "Matt Stauffer an article", I update composer with cmd, but gives error like "Class 'Laravel\Socialite\SocialiteServiceProvider' not found".

Please check sanp on below link,

http://awesomescreenshot.com/0fd59yu234

28 Sep
3 years ago

Hardie started a new conversation Register With Google,facebook

Hi, I am new in laravel and I want to login with google and facebook but I have no idea how to use and integrate in laravel 5.

Please suggest and help for how to sign up with google and facebook.

Thanks.

14 Sep
3 years ago

Hardie left a reply on Session Value Is Not Change

HI Sid,

Default I set session value as "1" i.e. default language is English.

I have one drop down of languages and on change I fired one script and ajax call I send data to controller and change the session value but not works.

Hardie started a new conversation Session Value Is Not Change

Hi, I want to change session value i.e. overwrite the session value.

Suppose my session array is like,

Array ( [_previous] => Array ( [url] => http://localhost/test ) [flash] => Array ( [old] => Array ( ) [new] => Array ( ) ) [_token] => asdfsda [language] => 3 )

Now by ajax call I want to change value of language, I tried session::put(), session::set() for overwrite value it works but when I refresh the page it display old value i.e. old array as above.

Please suggest or help same.

20 Aug
3 years ago

Hardie started a new conversation Laravel Login/Logout Multiple Authentication

Hi, I am new in laravel, I'm facing one problem in laravel 5 login and logout.

Login and logout is working fine for me but if I click on return back (using browser back button) after logout it returns dashboard page. I know may be its browser cache issue but how can I resolve it please suggest a way.

I tried Response::header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0') but it gives error, Actually I really don't know how to use it.

13 Aug
3 years ago

Hardie left a reply on Retrive (email ID) Records From Serialize Array In Laravel 5

Hi helmerdavila,

Suppose I have this serialize array,

a:9:{s:11:"c_firstname";s:6:"Hardik";s:10:"c_lastname";s:6:"Rabari";s:5:"email";s:29:"hardik.james1@gmail.com";s:10:"contact_no";s:10:"1234567890";s:9:"c_address";s:0:"";s:6:"c_city";s:0:"";s:7:"c_state";s:0:"";s:9:"c_country";s:0:"";s:5:"c_zip";s:0:"";}

So I have many of rows and I want to fired query like 'email like hardik.james1@gmail.com' so how can I write query in serialize array ?

Thanks.

Hardie started a new conversation Retrive (email ID) Records From Serialize Array In Laravel 5

Hi,

I want to fired select query or retrieve email id from serialize array in database. So is it possible with query.

Can you please suggest me a good way.

03 Aug
3 years ago

Hardie started a new conversation Laravel Query Not Allowed NOW(), CURDATE()

Hi all,

I am new in laravel, I getting errors, I want to records upto today and writing query like date >= 'curdate()' or date >= 'NOW()' but it not allowed it gives error like, Call to undefined function App\Http\Controllers\front\NOW().

So please give me idea or kindly help me for this.

Thanks.

29 Jun
3 years ago

Hardie left a reply on Multiple Authenticaiton

Hi rob, Thanks but I want to use different tables so is there any way for multiple tables if then help please.

I really stuck in this problem.

26 Jun
3 years ago

Hardie started a new conversation Multiple Authenticaiton

Hello All,

I am start my first project in Laravel, I am confuse about login because in my project there are admin panel login and also front panel login.

So, my questions is I want to use laravel authentication for front side and admin panel but is there possible to use inbuilt authentication for both side ? Is laravel provides multiple authentication ?

Is it possible can you please suggest me how it or give me some idea.

18 Jun
4 years ago

Hardie started a new conversation Total Row Count From Multiple Tables

Hello,

I am new in laravel. I am doing my first project in laravel so i have no much idea about it.

My question is, I want to row count of 5 different table, and no relation between table. So I have to "use" all model in controller and fire query for total row count ? or any other way ?. So is there any easy way so I can got all row count from one function in model and please help.

09 Jun
4 years ago

Hardie started a new conversation SIte Url Is Run Using Public Folder

Hello, Suppose Website: www.example.com

I installed laravel on server, I want my site should run only this URL like "www.example.com" but it is run on "www.example.com/public". And if suppose I run "www.example.com" it listing all folders. I want to remove public from my URL.

04 Jun
4 years ago

Hardie started a new conversation Used Constant Vairable Of Config Constant File In Every Javascript File Laravel 5

Hello,

I have small confusion that I have created a constant 'SITEURL' in constant.php file in config folder. Now i want to use that constant variable in javascript which i can use in all javascript file and page script also.

So is there any way please suggest me.

21 May
4 years ago

Hardie started a new conversation TokenMismatchException

Hi, i am using laravel 5 but in ajax call i have got one error like,

TokenMismatchException in VerifyCsrfToken.php line 46:

and also i have no exactly idea of token so can you help me please. i search over here and may be token is used in form but i want just listing records so is it compulsory of token ?