caglayantolga35

Member Since 1 Month Ago

Experience Points
4,920
Total
Experience

80 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
46
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.

  • Community Pillar

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

Level 1
4,920 XP
Jan
01
3 weeks ago
Activity icon

Started a new Conversation Laravel Pagination Multilang

           @if ( Config::get('app.locale') == 'en' && $blogs->lang == 'en')
<div class="isotope_item vrbloglist">
                <div class="item-image">
                <a href="{{ url('/en/blog/'.$blogs->slug) }}"><img src="{{ asset($blogs->blog_resim) }}" alt="blog" class="img-fluid"> </a>
                <span class="category-blog"><a href="{{ url('/en/kategori/'.$blogs->kategori_id) }}">{{ $blogs->kategoris->kategori_adi }}</a></span>
                </div>
                <div class="item-info blog-info">
                <div class="entry-blog">
                <span class="bypost"><b><i class="fas fa-user"></i> {{ $blogs->user_id }}</b></span>
                <span class="posted-on">
                <b><i class="fas fa-clock"></i> {{ $blogs->created_at->diffForHumans() }}</b>
                </span>
                </div>
                <h4><a href="{{ url('/en/blog/'.$blogs->slug) }}">{{ $blogs->blog_baslik }}</a></h4>
                <p>{!! Str::limit($blogs->blog_icerik, 208, '...') !!}</p>
                <br>
                </div>
                <a href="{{ url('/en/blog/'.$blogs->slug) }}"
                    class="btn btn-info btn-block">{{ __('lang.devaminioku') }}</a>
                </div>

Hello there, I am making a multilingual site. I have listed by language in the blog section and it works. But pagination doesn't work properly. Turkish language pagination looks the same in English. How can I filter pagination by content?

Dec
31
3 weeks ago
Activity icon

Started a new Conversation Blog Categories Page

Hello, I want to create a category page for the blog. I want articles listed by category. What should I do for this

Dec
29
3 weeks ago
Activity icon

Replied to Laravel Category Post Count

Thank you very much

Dec
28
3 weeks ago
Activity icon

Started a new Conversation Laravel Category Post Count

  @foreach($categories as $kategoris)
                                    <li>
                                        <a href="#">{{$kategoris->kategori_adi}} <span class="categories-number">({{ $kategoris->blogs->count() }})</span></a>
                                    </li>
                                    @endforeach

I want to show the number of articles in the category. But with this code, the number of all articles appears. How can I do it .? Database relationships exist between blog and categories. Thanks

Dec
19
1 month ago
Activity icon

Replied to Php Artisan Route:list Not Working

try this code :

namespace App\Http\Controllers\Manage;

use App\Http\Controllers\Controller;
Activity icon

Replied to Php Artisan Route:list Not Working

Try this: change namespace:

namespace App\Http\Controllers\Manage;

Activity icon

Replied to Php Artisan Route:list Not Working

Please show your [App\Http\Controllers\manage\RoleController] code.The error appears there..Namespace may be incorrect

Dec
17
1 month ago
Activity icon

Replied to Laravel Ajax File Upload

Thank you for your answer :)

Activity icon

Replied to Laravel Ajax File Upload

It worked thank you :)

Dec
16
1 month ago
Activity icon

Replied to Laravel Ajax File Upload

thank you for your answer

The picture is uploaded to the "image/blog" folder. But it appears as tmp in the database.

my database image:

https://ibb.co/kX8g948

Activity icon

Started a new Conversation Laravel Ajax File Upload

Hello Laravel and Ajax I just started learning. When saving Ajax data, I am saving all data properly. But I'm having trouble uploading pictures. Is there anyone who can help?

/my controller

public function store(Request $request, Blog $blog)

    {
        $validator = Validator::make($request->all(), [
          'blog_baslik' => 'required',
           'blog_icerik' => 'required|string|min:2|max:1750',
          'blog_resim' => 'required|mimes:jpg,jpeg,png',

        ]);
 
        if ($validator->fails()) {
            return response()->json(['errors' => $validator->errors()->all()]);
        }
        $blog->storeData($request->all());
        if ($validator->passes()) {
            $input['blog_resim'] = time() . '.' . $request->blog_resim. ".jpg";
            $request->blog_resim->move(public_path('image/blog'), $input['image']);
            Blog::create($input);
            return response()->json(['success' => 'done',$input]);
        }
 
    }

//model


   public function storeData($input)
{
    return static::create($input);
 
}

//My script

<script type="text/javascript">

                        $(function () {
                            var table = $('.yajra-datatable').DataTable({
                                processing: true,
                                serverSide: true,
                                ajax: "{‌{ route('blog.list') }}",
                                columns: [
                                    {data: 'DT_RowIndex', name: 'DT_RowIndex'},
                                    {data: 'kategori_id', name: 'kategori_id'},
                                    {data: 'blog_baslik', name: 'blog_baslik'},
                                    {data: 'blog_resim', name: 'blog_resim', sortable: false, searchable: false},
                                    {data: 'created_at', name: 'created_at'},
                                    {
                                        data: 'action',
                                        name: 'action',
                                        orderable: true,
                                        searchable: true
                                    },
                                ]
                            });
                        });
  // Create article Ajax request.
                        $('#SubmitCreateArticleForm').click(function(e) {
                            CKEDITOR.instances['blog_icerik'].updateElement();
 
                            e.preventDefault();
                            $.ajaxSetup({
                                headers: {
                                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                                }
                            });
                            $.ajax({
                                url: "{‌{ route('blog.store') }}",
                                method: 'post',
                                data: {
                                    kategori_id: $('#kategori_id').val(),
                                    blog_baslik: $('#blog_baslik').val(),
                                    blog_icerik: $('#blog_icerik').val(),
                                    blog_resim: $('#blog_resim').val(),
                                    blog_meta_title: $('#blog_meta_title').val(),
                                    blog_meta_desc: $('#blog_meta_desc').val(),
 
                                },
 
                                success: function(result) {
                                    if(result.errors) {
                                        $('.alert-danger').html('');
                                        $.each(result.errors, function(key, value) {
                                            $('.alert-danger').show();
                                            $('.alert-danger').append('<strong><li>'+value+'</li></strong>');
                                        });
                                    } else {
                                        $('.alert-danger').hide();
                                        $('.alert-success').show();
                                        $('.yajra-datatable').DataTable().ajax.reload();
                                        setInterval(function() {
                                            $('.alert-success').hide();
                                            $('.modal-backdrop').remove();
                                            $('#CreateArticleModal').modal('hide');
 
                                        }, 2000);
                                    }
                                }
                                    });
                        });
 
                        // Silme İşlemleri
                        var deleteID;
                        $('body').on('click', '#getDeleteId', function () {
                            deleteID = $(this).data('id');
                        })
                        $('#SubmitDeleteArticleForm').click(function (e) {
                            e.preventDefault();
                            var id = deleteID;
                            $.ajaxSetup({
                                headers: {
                                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                                }
                            });
                            $.ajax({
                                url: "blog/" + id,
                                method: 'DELETE',
                                success: function (result) {
                                    $('.modal-backdrop').remove();
                                    $('#DeleteArticleModal').hide();
                                    $('.alert-success').show();
                                    $('.yajra-datatable').DataTable().ajax.reload();
 
                                }
                            });
                        });
                    </script>

///ekleme işlemi