ahkeravi

ahkeravi

Member Since 11 Months Ago

Experience Points
11,020
Total
Experience

3,980 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
59
Lessons
Completed
Best Reply Awards
5
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 3
11,020 XP
Apr
16
3 months ago
Activity icon

Started a new Conversation Best Payment Integration For Laravel ?

can you guys please help me to integrate Razor pay payment gateway in laravel

advance Thank You!!

Apr
12
4 months ago
Activity icon

Replied to Laravel 419 Proxy Reauthentication Required ?

Thanks for reply @bobbybouwmann


    public function signin_doverify(Request $request) {

        $errors = new MessageBag();
        $validator = $this->validator($request->all());
        if ($validator->fails())
        {
          return redirect()
                ->back()
                ->withInput()
                ->withErrors($validator->errors());
        }

        $username_email = $_POST['username_email'];
        $password = $_POST['password'];


        $user_exists = $this->_signin->check_user_or_email_exists($username_email);
  
        if(count($user_exists) > 0) // if user name or email exists then check for pasword 
        {
            $check_password_match = $this->_signin->check_user_password_matches($user_exists[0]->id,$password);
            if(count($check_password_match) > 0) // if user id and password matches hen do login success
            {
                Session::put('loginemail', $user_exists[0]->email);
                Session::put('loginuserid', $user_exists[0]->id);
                Session::put('checkauthenticate',1); 
              
                if($user_exists[0]->role_id == 0) //superadmin
                {
                    Session::put('super_admin_info',$user_exists);
                    Session::put('login_type','super_admin');
                    return redirect('/dashboard');
                }
          else
        {
            $errors->add('username_email', 'Email doesn\'t exist.');
        }

        return redirect()
                ->back()
                ->withInput()
                ->withErrors($errors);

    }

this error comes in only some deskotop

Activity icon

Started a new Conversation Laravel 419 Proxy Reauthentication Required ?

i need solution for this error

Mar
11
5 months ago
Activity icon

Started a new Conversation Video Url Encrypt To Prevent Download ?

I need to prevent download video from the user in front end ? i there any library to avoid download ?

Feb
26
5 months ago
Activity icon

Replied to Angular Frontend ?

just i want to move India to out of country so preparing @sinnbeck

Activity icon

Replied to Angular Frontend ?

@sinnbeck

which technology is the best for a career?

Activity icon

Replied to Angular Frontend ?

I'm a php developer 2 years experience, I'm planning to move a Front-End angular developer

Activity icon

Replied to Angular Frontend ?

@sinnbeck I've been observing your answers for multiple days, THANK yOU! CAN YOU GUIDE ME

Activity icon

Started a new Conversation Angular Frontend ?

hi guy's just i want to what is front end angular and what i should learn to become a front-end angular developer?

Activity icon

Replied to Laravel DB::raw Query Using Multiple WHERE Clauses

@bobmyles

$query->where([
    ['column_1', '=', 'value_1'],
    ['column_2', '<>', 'value_2'],
    [COLUMN, OPERATOR, VALUE],
    ...
])
Feb
13
5 months ago
Activity icon

Replied to How To Convert Number Into Words In DomPDF Using Laravel??

@krishma https://github.com/patrickschur/number-to-words

use NumberToWords\NumberToWords;
use NumberToWords\Locale\English;
 
$c = new NumberToWords(new English()); // english
 
// One followed by 3003 zeros
echo $c->nameOfLargeNumber(3003); // outputs "millinillion"
 
echo $n->convert('3043.43'); // outputs "three thousand forty-three point four three"
echo $n->convert('3.1415926535'); // outputs "three point one four one five nine two six five three five"

Activity icon

Replied to I Want To Get Related Products Of A Product


$related_products = DB::table('related_products')
        ->select("*")
        ->where('prd_id', $current_prd_id)
               ->take(10)
               ->get();

@eusapxai im not sure try this

Activity icon

Replied to How To Convert Number Into Words In DomPDF Using Laravel??

you need like this or ?

1 = one , 2 = two ...... @krishma

Activity icon

Replied to Laracasts Quizzes

Most of the questions are not unable to select option C & D @jeffreyway

Feb
12
6 months ago
Activity icon

Awarded Best Reply on Best Way To Include Bootstrap In Laravel?

Download bootstrap files and upload to public folder and include in you project file

{{ URL::asset('bootstrap/js/main.js'); }} 

{{ URL::asset('bootstrap/css/css.css'); }} 

@jhonwick3

Activity icon

Replied to PDF Generate (Export)

@nikhil_lu210

if its solved make it as completed by marking best answer.

Thank You!!

Activity icon

Replied to How To Get Counter Of Custom Error Message Of An Attribute?

@drewlim7 if its solved make it as complete by giving best answer!

Thank You!!

Activity icon

Replied to Best Way To Include Bootstrap In Laravel?

Download bootstrap files and upload to public folder and include in you project file

{{ URL::asset('bootstrap/js/main.js'); }} 

{{ URL::asset('bootstrap/css/css.css'); }} 

@jhonwick3

Feb
10
6 months ago
Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

$key->name = 'My new list';
$key will have the value 'name', 
and $value will have the value 'My new list'.

i think now you understood @matheenulla

Activity icon

Replied to Maximum Execution Time Of 120 Seconds Exceeded

@tykus (i) sorry for this (ii) is there any solution for that

Activity icon

Replied to Maximum Execution Time Of 120 Seconds Exceeded

@theldess find and replace this code in you php/php.ini file

max_execution_time = 360
Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

@matheenulla can you print and show the exact what you getting fron date input

Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

are you trying to get date from input ?

@matheenulla

Activity icon

Replied to Whats The Best Way To Validate An Array Of Values ?

$validator = Validator::make($request->all(), [
    'segments.*.builder' => 'required',
    'segments.*.value' => 'required',
]);

@mostafalaravel

Activity icon

Replied to Validation Txt,doc,pdf File Using Javascript

then you can use jquery for that u can easily achive this

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/additional-methods.js"></script>

<form id="add" enctype="multipart/form-data">
    <label>Song:</label>
    <input type="text" name="song" class="form-control">
    <br>
    <label>Upload Mp3:</label>
    <input type="file" name="file" class="form-control">
    <br>
    <input type="submit" class="btn btn-default" value="Add">
</form>
<script>
$("#add").validate({
    rules: {
        song: {
            required: true,
        },
        file: {
            required: true,
            extension: "mp3|mpeg|mp4"
        },
    }
});
<script>

@vandan

Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

public static $snakeAttributes = false;
protected $appends = ['project_startdate','project_enddate'];


public function setProjectStartdateAttribute($input)
    {
       $this->attributes['project_startdate'] = \Carbon\Carbon::createFromFormat('Y-m-d-H:i:s', $input)->format('Y-m-d-H:i:s');
    }
public function setProjectEnddateAttribute($input)
    {
       $this->attributes['project_endtdate'] = \Carbon\Carbon::createFromFormat('Y-m-d-H:i:s', $input)->format('Y-m-d-H:i:s');
    }
public function getProjectStartdateAttribute($input)
    {
        return $this->changeDateFormUTCtoLocal($input);
    }

  
    public function getProjectEnddateAttribute($input)
    {
        return $this->changeDateFormUTCtoLocal($value);
    }

@matheenulla this will work fine

Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

public static $snakeAttributes = false;

add this to your code @matheenulla

Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel

@matheenulla

protected $appends = ['project_startdate','project_enddate'];
Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@krishma if this solved make this as best answer !

Thank You!

Activity icon

Replied to Validation Txt,doc,pdf File Using Javascript

@vandan you can remove whichever file you want to upload

(['gif','png','jpg','jpeg','rtf','pdf'])

remove text and doc from array it will work

Activity icon

Replied to How To Create Single Mutator For Multple Fields Using Laravel


public function __set($key, $value)
    {
         if(in_array($key, ['project_startdate', 'project_enddate'])){
            $this->attributes[$key] = Carbon::createFromFormat('Y-m-d-H:i:s', $value)->format('Y-m-d-H:i:s');
        } 
    }

    public function __get($name) 
    {
        return Carbon::parse($name)->format('Y-m-d-H:i:s');
    }

@matheenulla try this

Activity icon

Replied to Validation Txt,doc,pdf File Using Javascript

you need to upload only text file or what ? @vandan

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@krishma you are simply complicating this, you can get specific record in controller itself, rather then using foreach

Activity icon

Replied to How To Get Counter Of Custom Error Message Of An Attribute?

@drewlim7 then its start from 0 itself try to break the validation in second file, add validated file to first field

Activity icon

Replied to How To Get Counter Of Custom Error Message Of An Attribute?

@drewlim7 in your form more then one image file field is there?

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@foreach ($dataz as $order)
     {{$order->cust_order_no}}
    {{$order->fg_item}}
    {{$order->net_wt}}
    {{$order->qty}} 
    {{$order->rate}}
    {{$order->amount}}

    @if ( condition ) 
            //your custom code
    @endif 

@endforeach

@krishma in which condition and what you want to achive?

Activity icon

Replied to How To Use Where Condition Inside Foreach Loop?

@krishma if you explain more or show your code, it would be better to understand the problem

Feb
09
6 months ago
Activity icon

Awarded Best Reply on Pdf Generator ?

you can try this is awesome

https://mpdf.github.io/ @jhonwick3

Activity icon

Replied to Pdf Generator ?

you can try this is awesome

https://mpdf.github.io/ @jhonwick3