indersein

indersein

Member Since 11 Months Ago

Chandigarh

Experience Points
9,520
Total
Experience

480 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
87
Lessons
Completed
Best Reply Awards
0
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 2
9,520 XP
May
22
4 days ago
Activity icon

Replied to Where Are You All From?

I m from Chandigarh, India

Activity icon

Started a new Conversation Add Text In Image

Hi any one please help me for add text to image using php

header("Content-type:image/jpeg");

	$image  = imagecreatefromjpeg("image/photo.jpeg");

	$font = "TCCEB.TFF";
	$color = imagecolorallocate($image, 87, 110, 121);
	 $x = 100;
	 $y = 100;

	imagettftext($image, 100, 0, $x,$y,$color,$font,'This is testing');

     imagejpeg($image);

This is my code but not working

May
04
3 weeks ago
Activity icon

Started a new Conversation Export Csv In Laravel With Multiple Array In Single

Array ( [0] => stdClass Object ( [value] => [label] => Text [type] => TextInput )

[1] => stdClass Object
    (
        [value] => 
        [label] => Long Text
        [type] => LongTextInput
    )

[2] => stdClass Object
    (
        [value] => 9878427510
        [label] => Number
        [type] => NumberInput
    )

[3] => stdClass Object
    (
        [value] => 
        [label] => Select
        [type] => SelectList
    )

[4] => stdClass Object
    (
        [value] => 
        [label] => Radio
        [type] => RadioButton
    )

[5] => stdClass Object
    (
        [value] => 
        [label] => checkbox
        [type] => Checkbox
    )

[6] => stdClass Object
    (
        [value] => 
        [label] => timepicker
        [type] => TimePicker
    )

[7] => stdClass Object
    (
        [value] => 
        [label] => datepicker
        [type] => DatePicker
    )

[8] => stdClass Object
    (
        [value] => 
        [label] => date time picker
        [type] => DatetimePicker
    )

[9] => stdClass Object
    (
        [value] => 0
        [label] => rating
        [type] => Rating
    )

[10] => stdClass Object
    (
        [value] => 
        [label] => file
        [type] => FileUpload
    )

) Array ( [0] => stdClass Object ( [value] => This is testing [label] => Text [type] => TextInput )

[1] => stdClass Object
    (
        [value] => 
        [label] => Long Text
        [type] => LongTextInput
    )

[2] => stdClass Object
    (
        [value] => 9878427510
        [label] => Number
        [type] => NumberInput
    )

[3] => stdClass Object
    (
        [value] => 
        [label] => Select
        [type] => SelectList
    )

[4] => stdClass Object
    (
        [value] => 
        [label] => Radio
        [type] => RadioButton
    )

[5] => stdClass Object
    (
        [value] => 
        [label] => checkbox
        [type] => Checkbox
    )

[6] => stdClass Object
    (
        [value] => 
        [label] => timepicker
        [type] => TimePicker
    )

[7] => stdClass Object
    (
        [value] => 
        [label] => datepicker
        [type] => DatePicker
    )

[8] => stdClass Object
    (
        [value] => 
        [label] => date time picker
        [type] => DatetimePicker
    )

[9] => stdClass Object
    (
        [value] => 0
        [label] => rating
        [type] => Rating
    )

[10] => stdClass Object
    (
        [value] => 
        [label] => file
        [type] => FileUpload
    )

) Array ( [0] => stdClass Object ( [value] => This is testing [label] => Text [type] => TextInput )

[1] => stdClass Object
    (
        [value] => 
        [label] => Long Text
        [type] => LongTextInput
    )

[2] => stdClass Object
    (
        [value] => 9805376872
        [label] => Number
        [type] => NumberInput
    )

[3] => stdClass Object
    (
        [value] => 
        [label] => Select
        [type] => SelectList
    )

[4] => stdClass Object
    (
        [value] => 
        [label] => Radio
        [type] => RadioButton
    )

[5] => stdClass Object
    (
        [value] => 
        [label] => checkbox
        [type] => Checkbox
    )

[6] => stdClass Object
    (
        [value] => 
        [label] => timepicker
        [type] => TimePicker
    )

[7] => stdClass Object
    (
        [value] => 
        [label] => datepicker
        [type] => DatePicker
    )

[8] => stdClass Object
    (
        [value] => 
        [label] => date time picker
        [type] => DatetimePicker
    )

[9] => stdClass Object
    (
        [value] => 0
        [label] => rating
        [type] => Rating
    )

[10] => stdClass Object
    (
        [value] => 
        [label] => file
        [type] => FileUpload
    )

)

Hi Anyone please help me How to export multiple array in one csv file

May
01
3 weeks ago
Activity icon

Started a new Conversation Object Of Class Closure Could Not Be Converted To String


    $submissions = Submissions::where('uuid', $uuid)->first();
        $userData = json_decode($submissions->userData, true);
        $headers = array(
            "Content-type" => "text/csv",
            "Content-Disposition" => "attachment; filename=file.csv",
            "Pragma" => "no-cache",
            "Cache-Control" => "must-revalidate, post-check=0, pre-check=0",
            "Expires" => "0"
        );
        $callback = function() use ($userData)
        {
            $file = fopen('php://output', 'w');
            foreach($userData as $data) {
                fputcsv($file, $data);
            }
            fclose($file);
        };
        return response()->download($callback, 200, $headers);
Apr
14
1 month ago
Activity icon

Replied to For Laravel Blade With Handlebars

Thanks for response problem solved

Activity icon

Replied to For Laravel Blade With Handlebars

    <div class="dropdown">
        <button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-cog" aria-hidden="true"></i>
            </button>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="/admin/form/@{{uuid}}/edit?i=form">Edit</a>
        </div>
      </div>
      <a class="btn btn-xs btn-primary" href="/admin/form/@{{uuid}}/active">Activate</a>
</script>

I want to put an if condition here.
Activity icon

Replied to For Laravel Blade With Handlebars


@section('title', 'Forms')

@section('content_header')
@stop

@section('content')
<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title">Forms</h3>
                @if (Auth::user()->can('create-forms'))
                <a class="btn btn-primary float-right" href="{{url('admin/form/create?i=form')}}">Add New Form</a>
                @endif
            </div>

            <!-- /.card-header -->
            <div class="card-body">

                <form class="form-inline-custom container-filter">
                    <div class="form-group">
                        <select class="form-control input-sm" id="forms-dt-filter-status">
                            <option value="" selected>Status - All</option>
                            <option value="Draft">Draft</option>
                            <option value="Active">Active</option>
                            <option value="Disabled">Disabled</option>
                        </select>
                    </div>
                </form>

                <table class="table table-bordered table-hover dataTable" data-module="forms-dt">
                    <thead>
                        <tr>
                            {{-- <th>ID</th> --}}
                            <th>Title</th>
                            <th>Updated</th>
                            <th>Created</th>
                            <th>Status</th>
                            <th class="action">Action</th>
                        </tr>
                    </thead>
                    <tbody></tbody>
                </table>
            </div>
        </div>
    </div>
</div>
@stop

@section('page_js')
<script>
    $(function(){

$.fn.formsDt = function(userOptions) {
  var self = this;

  if ($.type(userOptions) === 'string') {
    userOptions = { url: userOptions };
  };

  var options = $.extend({
    url: 'v1/admin/forms'
  }, userOptions);

  self.dt({
    url: options.url,
    order: [[0, 'desc']],
    columns: [
      {
        name: 'title',
      },
      {
        name: 'updated_at',
        className: 'datetime',
        formatter: 'dateTimeLong'
      },
      {
        name: 'created_at',
        className: 'datetime',
        formatter: 'dateTimeLong'

      },
      {
          name: 'status',
          className: 'status',
          template: $.compile('@{{ formStatus this }}')
      },
      {
        name: 'actions'
      }
    ]
  });

  $('#forms-dt-filter-status').on('change', function (e) {
        self.dtSearchColumn(1, $(this).val());
  });

  return self;
};

$('[data-module=forms-dt]').formsDt();
});
</script>

<script type="text/x-handlebars-template" data-template="forms-dt-actions">
    <div class="dropdown">
        <button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-cog" aria-hidden="true"></i>
            </button>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="/admin/form/@{{uuid}}/edit?i=form">Edit</a>
        </div>
      </div>
      <a class="btn btn-xs btn-primary" href="/admin/form/@{{uuid}}/active">Activate</a>
</script>
@stop



This is my full code
Apr
10
1 month ago
Activity icon

Replied to For Laravel Blade With Handlebars

Don't work syntax error, unexpected '<' (View:

Same error

Activity icon

Replied to Passing Locale To All Queued Mails?

Use like this Verify::dispatch($user);

Activity icon

Started a new Conversation For Laravel Blade With Handlebars

How to set if condition in my href link please help me anyone

    <div class="dropdown">
        <button type="button" class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-cog" aria-hidden="true"></i>
            </button>
        <div class="dropdown-menu">
            <form method="post" action="/admin/automations/@{{id}}/destroy">
                <input type="hidden" name="_token" value="{{$csrf_token}}"/>
                <button class="dropdown-item" type="submit">Delete Automation</button>
            </form>
        </div>
        <a class="btn btn-xs btn-primary" href="/admin/automations/disable/@{{uuid}}/@{{ status }}">@{{ status }}</a>
      </div>
</script>
Apr
09
1 month ago
Activity icon

Replied to Eloquent Relationship :Put Condition On "with()" Clause

Thanks @snapey Your response very after 2 years. Thanks alot.

Mar
31
1 month ago
Activity icon

Started a new Conversation Laravel Adminlte Role Config

Hi everyone i am using laratrust package for manage role,permission and teams but my adminlte theme side bar from adminlte.php in config How i set roles in every side bar page Like This

        [
            'text' => 'Customers',
            'url'  => 'admin/customers',
            'icon' => 'fas fa-fw fa-table',
            'permission' => 'create-users',
         ],


Like my permission is set but role not working in customer page Please help me.