ziaakbari

ziaakbari

Member Since 4 Weeks Ago

Experience Points
260
Total
Experience

4,740 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 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 1
260 XP
Mar
12
4 weeks ago
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

this problem is not only with Angular, in Laravel I have

<div>{{$project->name}}</div>
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

not solved by adding ng-non-bindable

<div ng-non-bindable> {{ project.name }} </div>
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Mr. @snapey I'm sorry to make you confused. no no I'm not executing, as you said; I just want to show sample code on the browser. I said 2+3 is ok, because browser does a calculation and there are no undefined things, in case of {{ $title }} browser also trying to show what $title containing,

what I want is; the expression {{ $title }} cause to a blank page, how I should tell the browser to ignore it from evaluating and show how it is?. If I still couldn't make you understand please see this link; https://coffeequery.com/posts/angular-test in the above link; If you go to console there is no error, if you look at the element tab body tag is empty, if you view page source you can see that everything is loaded.

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Sorry for my mistake,

In my case the expression {{$title}} cause blank page. I want that to be ignored by browser.

Mar
11
4 weeks ago
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

A clear example:

in this discussion you simply typed {{ $title }} where this variable is defined and where it's value is stored? offcourse the variable $title has no value defined somewhere and browser ignore it to check it's value, and beautifully shows. In other word; how laracasts.com allows us to type {{$title}} whereas there is no declaration or definition for it`

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

see @siangboon there is no route or controller for this to return or dd() $file_name, I know the variable $file_name is undefined, I just want the browser to ignore this expression from evaluating and show that what it is.

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

when I have something like {{ 2 + 3 }} there is no problem, and show the result 5 on browser, but when there is something like {{ item.title }} in angular or {{ $title }} in Laravel the problem raises. it means when the variable inside {{ }} is undefined blank page occurs, what I want is; browser should ignore this expression from evaluating.

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Mr. @snapey I think the problem is with browser feature, because this problem is not showing only in Angular or Laravel or Vue or React. I am looking for a solution in browser to ignore what it is.

for example in this website laracasts.com, how this below expression gets ignoring by browser

{{ $file_name }}

if I try to show such thing on my website that causes to the blank page

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

I don't see any error in the console, also in dev tools in the element tap body tag is empty, you can see at this link http://coffeequery.com/posts/angular-test

Mar
10
4 weeks ago
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

that shouldn't be matter what $file_name containing, I just need that to be skipped or browser should ignore that and show how it is.

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

I tried this

<div *ngFor="let item of items">
	<p ngNonBindable>{{item.name}}</p>
</div>

still blank page

to view post http://coffeequery.com/posts/angular-test

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Dear @jbloomstrom

@ symbol not skipping, still showing blank page

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

dear @pauljp

I'm creating posts in a blog, look at http://coffeequery.com/posts/upload-and-download-file-in-laravel link you will understand what I'm talking about. I am just stacked in showing a variable inside {{ }}. in Angular when I have something like below

<li *ngFor="let item of items">
{{item.name}}
</li>

or in vuejs if we have something like below

  <li v-for="item in items" :key="item.id">
    {{ item.name}}
  </li>

item.name inside {{ }} cause page blank

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

hi @jlrdw,

I tried, now it shows nothing in action

<form action="" method="GET">
    <button class="btn btn-sm btn-default" type="submit">Download</button>
</form> 

again, this is not the only case I'm facing I'm creating posts for angular, there you know we have lots of text interpulation, for example

<div *ngFor="let item of items">
	<p>{{item.name}}</p>

</div>

in above case, item.name inside {{ }} cause blank page,

Activity icon

Replied to Post Detail Page Is Not Indexed In Google But Post List Page Is Indexed

hi @tisuchi, thanks for replying me. what do you mean by prioritizing /posts instead of /posts/slug , look at what I have done;

this is my index function in PostController

    public function index()
    {
        $posts = Post::latest()->paginate(7);
        return view('posts.posts',compact('posts'))
                ->with('i', (request()->input('page', 1) - 1) * 5);   
    }

this is my show function in PostController

    public function show($slug)
    {
        $post = Post::where('slug', $slug)->first();
        view()->share('pageTitle',$post->title);
        view()->share('metaContent', $post->subtitle);

        return view('posts.post', compact('post'));
    }

as I have shared the post in above then I accessed them in view master page like this

    <meta name="description" itemprop="description" content="{{$metaContent}}">
    <title>{{$pageTitle}}</title>

as you see in the website, I shared lists of posts and projects across the application in the AppServiceProvider

    public function boot()
    {
        Schema::defaultStringLength(191);

        $posts = Post::latest()->get(['id','title','image'])->take(5);
        $projects = Project::latest()->get(['id','title','image'])->take(5);

        view()->share('sharedPosts', $posts);
        view()->share('sharedProjects', $projects);
    }

is there anything I'm doing wrong?

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

hi @Snapey, thanks for your reply. if I go to view source in the browser, my code looks like this;

<pre class="language-markup"><code>&lt;form action="download/{{$file_name}}" method="GET"&gt;
    &lt;button class="btn btn-sm btn-default" type="submit"&gt;Download&lt;/button&gt;
&lt;/form&gt; </code></pre>
Mar
09
1 month ago
Activity icon

Started a new Conversation Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Hi there,

I am using prism code highlighter in Laravel 5.4 in bellow example;

<form action="download/{{$file_name}}" method="GET">
    <button class="btn btn-sm btn-default" type="submit">Download</button>
</form>

In the above code example, I need to pass file_name to my route, when I inclose the variable $file_name with {{ }} the whole page content disappears, I see a blank page.

could anyone help me with this problem, please thanks in advance

Activity icon

Started a new Conversation Post Detail Page Is Not Indexed In Google But Post List Page Is Indexed

Hi there my name is Zia, I'm new in this channel I have built a blog in Laravel, coffeequery.com but the problem I have now is; when I search my post on google, google doesn't list the exact post, instead list a page that is linked to the target page.

As an example; my post title is "Upload and Download File in Laravel" when I type in google "Upload and Download File in Laravel coffeequery.com", Google should list the following page

https://coffeequery.com/posts/upload-and-download-file-in-laravel

but instead, Google list this page

https://coffeequery.com/posts

could anyone help me with this problem? Thanks in advance