nagm_star

nagm_star

Web Developer at NIC

Member Since 1 Year Ago

Khartoum

Experience Points
770
Total
Experience

4,230 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-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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 1
770 XP
Nov
28
2 weeks ago
Activity icon

Awarded Best Reply on Str Slug With Arabic Not WorkingStr Slug With Arabic Not Working

thank..if found method and problem solved

function make_slug($string = null, $separator = "-") {
    if (is_null($string)) {
        return "";
    }

    // Remove spaces from the beginning and from the end of the string
    $string = trim($string);

    // Lower case everything
    // using mb_strtolower() function is important for non-Latin UTF-8 string | more info: http://goo.gl/QL2tzK
    $string = mb_strtolower($string, "UTF-8");;

    // Make alphanumeric (removes all other characters)
    // this makes the string safe especially when used as a part of a URL
    // this keeps latin characters and arabic charactrs as well
    $string = preg_replace("/[^a-z0-9_\s-ءاأإآؤئبتثجحخدذرزسشصضطظعغفقكلمنهويةى]/u", "", $string);

    // Remove multiple dashes or whitespaces
    $string = preg_replace("/[\s-]+/", " ", $string);

    // Convert whitespaces and underscore to the given separator
    $string = preg_replace("/[\s_]/", $separator, $string);

    return $string;
}


Activity icon

Replied to Str Slug With Arabic Not WorkingStr Slug With Arabic Not Working

thank..if found method and problem solved

function make_slug($string = null, $separator = "-") {
    if (is_null($string)) {
        return "";
    }

    // Remove spaces from the beginning and from the end of the string
    $string = trim($string);

    // Lower case everything
    // using mb_strtolower() function is important for non-Latin UTF-8 string | more info: http://goo.gl/QL2tzK
    $string = mb_strtolower($string, "UTF-8");;

    // Make alphanumeric (removes all other characters)
    // this makes the string safe especially when used as a part of a URL
    // this keeps latin characters and arabic charactrs as well
    $string = preg_replace("/[^a-z0-9_\s-ءاأإآؤئبتثجحخدذرزسشصضطظعغفقكلمنهويةى]/u", "", $string);

    // Remove multiple dashes or whitespaces
    $string = preg_replace("/[\s-]+/", " ", $string);

    // Convert whitespaces and underscore to the given separator
    $string = preg_replace("/[\s_]/", $separator, $string);

    return $string;
}


Activity icon

Started a new Conversation Str Slug With Arabic Not WorkingStr Slug With Arabic Not Working

slug based on name of my articles, when I check : str_slug('اخبار السودان

I get : "akhbar-sudan"

Is it a problem ?

Nov
12
1 month ago
Activity icon

Replied to Setting Default Locale In App.php Does Not Work

yes i make all of this and translation work perfectly when change language form ar to en

and vice versa.. but my problem is can's set ar default

Activity icon

Replied to Setting Default Locale In App.php Does Not Work

i make this command .. not get error but show English language as default and change to Arabic is working

Activity icon

Started a new Conversation Setting Default Locale In App.php Does Not Work

i'm set default language ar but not worjing

    'fallback_locale' => 'ar',

Oct
02
2 months ago
Activity icon

Started a new Conversation How To Fix Error 500 Server Error

I uploaded laravel project to shared host "cpanel".. before uploading I cleared cache and generate key.. It's work perfectly but some routes not working show message 500 Server Error

Sep
19
2 months ago
Activity icon

Replied to Image Not Appear All In Slideshow

i fetched all images .. but it's display horizontally

Sep
18
2 months ago
Activity icon

Replied to Image Not Appear All In Slideshow

i saved image in db in public folder "uploads/gallary/1568809246slider-bg1.jpg"

Activity icon

Replied to Image Not Appear All In Slideshow

this is the code of slide show . i want get image from database

        <section class="home-slider">
            <div class="slider-active">
                <!-- Single Slider -->
                <div class="single-slider overlay" style="background-image:url('images/slider/slider-bg1.jpg')">
                    <div class="container">
                        <div class="row">
                            <div class="col-lg-8 offset-lg-4 col-md-8 offset-md-4 col-12">
                                <div class="slider-text text-right">
                                    <h1>Soluation</h1>
                                    <div class="button text-right">
                                        <a href="courses.html" class="btn primary">products</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--/ End Single Slider -->
                <!-- Single Slider -->
                <div class="single-slider overlay" style="background-image:url('images/slider/slider-bg2.jpg')" data-stellar-background-ratio="0.5">
                    <div class="container">
                        <div class="row">
                            <div class="col-lg-8 offset-lg-4 col-md-8 offset-md-4 col-12">
                                <div class="slider-text text-center">
                                    <h1>IT Soluation</h1>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--/ End Single Slider -->

            </div>
        </section>
Activity icon

Replied to Image Not Appear All In Slideshow

in public folder .. show only one imag

Activity icon

Started a new Conversation Image Not Appear All In Slideshow

i wan't to show all image in slide but not appear

    <section class="home-slider">
            @foreach($gallars as $gallary)
            <div class="slider-active">
                <!-- Single Slider -->
                <div class="single-slider overlay" style="background-image:url({{asset($gallary->image) }})">
                    <div class="container">
                        <div class="row">
                            <div class="col-lg-8 offset-lg-4 col-md-8 offset-md-4 col-12">
                                <div class="slider-text text-right">
                                    <h1>{{$gallary->title}} </h1>
                                    <p>{{$gallary->content}}.</p>
                                    <div class="button text-right">
                                        <a href="courses.html" class="btn primary">Products</a>
                                        <a href="about.html" class="btn">Get start</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--/ End Single Slider -->

            </div>
            @endforeach
        </section>
Sep
02
3 months ago
Activity icon

Replied to How To Delete Image From Folder After Delete Post

uploads/posts/15674078641547729145.png

Activity icon

Replied to How To Delete Image From Folder After Delete Post

featured is name of column in database

Activity icon

Replied to How To Delete Image From Folder After Delete Post

i used this to store image

        $featured = $request->featured;
        $featured_new_name = time().$featured->getClientOriginalName();
        $featured->move('uploads/posts', $featured_new_name);
Activity icon

Started a new Conversation How To Delete Image From Folder After Delete Post

show this error "unlink(): http does not allow unlinking"

this is function


    public function kill(post $post , $id)
    {

        $post = Post::withTrashed()->where('id', $id)->firstOrFail();
        //dd($post);

        if($post->trashed()) {

            unlink($post->featured);
            $post->forceDelete();
        } else {

            $post->delete();
        }
        session()->flash('success', 'Post Deleted successfully');

        return redirect(route('posts.trashed'));


    }

Jul
10
5 months ago
Activity icon

Started a new Conversation Symbolic Link In Shared Host

how to create a symbolic link for laravel website in ipage shared hosting

Jul
08
5 months ago
Activity icon

Replied to Dynamic Sliders Problem

solved...thanks ❤️

Activity icon

Replied to Dynamic Sliders Problem

<div id="home" class="slider-area">
    <div class="bend niceties preview-2">
      <div id="ensign-nivoslider" class="slides">
        <img src="img/slider/slider1.jpg" alt="" title="#slider-direction-1" />
        <img src="img/slider/slider2.jpg" alt="" title="#slider-direction-2" />
      </div>

      <!-- direction 1 -->
      <div id="slider-direction-1" class="slider-direction slider-one">
        <div class="container">
          <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
              <div class="slider-content">
                <!-- layer 1 -->
                <div class="layer-1-1 hidden-xs wow slideInDown" data-wow-duration="2s" data-wow-delay=".2s">
                  <h2 class="title1">Perfect for Business </h2>
                </div>
                <!-- layer 2 -->
                <div class="layer-1-2 wow slideInUp" data-wow-duration="2s" data-wow-delay=".1s">
                  <h1 class="title2">We're In The Business Of Helping You Start Your Business</h1>
                </div>
                <!-- layer 3 -->
                <div class="layer-1-3 hidden-xs wow slideInUp" data-wow-duration="2s" data-wow-delay=".2s">
                  <a class="ready-btn right-btn page-scroll" href="#services">See Services</a>
                  <a class="ready-btn page-scroll" href="#about">Learn More</a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- direction 2 -->
      <div id="slider-direction-2" class="slider-direction slider-two">
        <div class="container">
          <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
              <div class="slider-content text-center">
                <!-- layer 1 -->
                <div class="layer-1-1 hidden-xs wow slideInUp" data-wow-duration="2s" data-wow-delay=".2s">
                  <h2 class="title1">The Best Business Information </h2>
                </div>
                <!-- layer 2 -->
                <div class="layer-1-2 wow slideInUp" data-wow-duration="2s" data-wow-delay=".1s">
                  <h1 class="title2">We're In The Business Of Get Quality Business Service</h1>
                </div>
                <!-- layer 3 -->
                <div class="layer-1-3 hidden-xs wow slideInUp" data-wow-duration="2s" data-wow-delay=".2s">
                  <a class="ready-btn right-btn page-scroll" href="#services">See Services</a>
                  <a class="ready-btn page-scroll" href="#about">Learn More</a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

Activity icon

Replied to Dynamic Sliders Problem

same problem

Activity icon

Started a new Conversation Dynamic Sliders Problem

I can not display images in the slider one by one, it displays all images once

      @foreach( $gallaries as $image )
      <div id="ensign-nivoslider" class="slides">
         <img src="<?php echo asset("storage/img/gallary/$image->image") ?>" alt="" title="#slider-direction-1" />
      </div>
      @endforeach