Ozan

Senior Web Developer at 4global

Hire Me

Experience

61,370

28 Best Reply Awards

  • Member Since 3 Years Ago
  • 859 Lessons Completed
  • 1 Favorite

31st December, 2016

Ozan started a new conversation Cannot Render Property Of A Component • 1 year ago

alt text alt text alt text alt text

I cannot reach the name of the language inside the language-row template.

How am I supposed to reach the name of a language, while I can get the data inside by typing @{{ language }}. I get an error when I do @{{ language.name }}, saying: Property or method "language" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in root instance)

11th November, 2016

4th September, 2016

Ozan started a new conversation Can We Use Socialite To Interact With API After Authentication? • 1 year ago

Can we use Socialite to interact with API after authentication?

What I mean by this is that we can define scopes in some providers.

For example in Facebook we can add friends as a scope. How can we use this scope?

13th August, 2016

Ozan left a reply on Help Me Convince My Friend To Use Vue Over React! • 1 year ago

Oups...

Ozan left a reply on Passing VueJS Value Into PHP Varaible • 1 year ago

You can't do that.

Ozan left a reply on Help Me Convince My Friend To Use Vue Over React! • 1 year ago

He didn't use any of them yet, I can't even make him try.

12th August, 2016

Ozan started a new conversation Help Me Convince My Friend To Use Vue Over React! • 1 year ago

No matter what I do or explain him, he just doesn't accept that using an easier framework will help building the application more.

I watched tons of JavaScript tutorials including Angular, React and Vue. I was not able to find my way by reading the documentation with React and Angular.

I did so much research about tests done by people in the internet, showing Vue about 3 times faster than React in performance.

What am I supposed to do?

His counter argument has always been that React is being supported by Facebook. But then I say "They why is the documentation so crap so that I can not understand or find what I am looking for?" He just doesn't cares and adds the contributors count in GitHub as an extra argument. My answer is being "This framework is still becoming popular and why would they stop working on it?"

Thanks in advance...

11th August, 2016

Ozan left a reply on Eloquent Eager Loading Specific Columns • 1 year ago

@sean_the_bean

Nop, he didn't even finish the book he told he's writing: https://leanpub.com/eloquence-emerging

28th July, 2016

Ozan left a reply on Post Pjax Script Execution Problem • 1 year ago

@MikeHopley I tried that but couldn't understand. Do you have an example?

26th July, 2016

Ozan left a reply on Post Pjax Script Execution Problem • 1 year ago

Ozan started a new conversation Post Pjax Script Execution Problem • 1 year ago

I would like to execute some page related scripts like building the datatables or setting up some form validation.

I will try to explain via a simple example.

I have 2 pages: Dashboard and About

When I load the page the very first time pjax will not be used. So I can yield my scripts at the bottom of all JS files properly.

Imagine i am alerting the page content, in this case i want to this:

alert('Dashboard') // after loading dashboard page

alert('About') // after loading alert page

If Pjax only gets the #pjax-container and the <title></title> from my servers response, how am I supposed to update and run my page specific scripts?

IRL example:

$(document).pjax('nav a', '#pjax-container'); // I have my pjax like this.

and my dashboard.blade.php like this

@extends('smartadmin.layout')

@section('title', 'Dashboard')

@section('breadcrumbs', SmartUI::renderBreadcrumbs())

@section('navigation', SmartUI::renderNavigation())

@section('content')
    Dashboard
@stop

@section('scripts')
    <script>
        $(function() {
            alert('Dashboard.');
        });
    </script>
@stop

25th July, 2016

Ozan left a reply on Jeffrey Is Stupid • 1 year ago

Ah no way! @JeffreyWay

You didn't add that filter. :(

Ozan started a new conversation Jeffrey Is Stupid • 1 year ago

Does it still work?

27th June, 2016

Ozan left a reply on Laravel 5.3 Wish List • 1 year ago

Please make sure that with method on an Eloquent\Builder has the same life-cycle with load method on a collection.

with method queries for all the rows and filters them in PHP, this is so not ideal for performance.

@TaylorOtwell @JeffreyWay

27th April, 2016

Ozan left a reply on Can Variable Be Classified In View? • 1 year ago

I think the best way to be querying the database twice. 1 query is not that big of a deal for MySQL but looping through all of your articles twice could slow your application down.

7th January, 2016

Ozan started a new conversation Caching Bug • 2 years ago

The homepage is cached and doesn't show latest lessons.

20th December, 2015

Ozan started a new conversation Best Composer Packages For Laravel • 2 years ago

I am trying to make a list of best packages for laravel.

I am waiting for your suggestions!

Current state:

        "laravelcollective/html"
        "rtconner/laravel-kint"
        "barryvdh/laravel-debugbar"
        "doctrine/dbal"
        "pusher/pusher-php-server"
        "guzzlehttp/guzzle"
        "baum/baum"
        "cviebrock/eloquent-sluggable"
        "intervention/image"
        "amsgames/laravel-shop"

13th December, 2015

Ozan left a reply on Find Conversations By Participants ManyToMany • 2 years ago

@awwang10 @bobbybouwmann

I am trying to retrieve the conversation out of its participants.

I don't want a specific part of its participants.

10th December, 2015

Ozan left a reply on Find Conversations By Participants ManyToMany • 2 years ago

I have a pivot table with the participant_id's and conversation_id's

so for each minimal conversation (between 2 people) I have 2 rows in the database.

Assuming that it's the first conversation in the DB the table should look like this:

| participant_id | conversation_id | |----------------|-----------------| | 1 | 1 | | 2 | 1 |

Ozan started a new conversation Find Conversations By Participants ManyToMany • 2 years ago

How can I retrieve a single thread which is between some specific users?

6th December, 2015

Ozan left a reply on How To Set WhereIn Update() Param? • 2 years ago

You can simply call decrement() method.

29th November, 2015

Ozan started a new conversation There Is A `space` Before The Category Name In Breadcrumbs • 2 years ago

There is a space before the category name in breadcrumbs

Ozan left a reply on Looping A Component • 2 years ago

Solved.

Added props: ['item'] to my component.

Ozan started a new conversation Looping A Component • 2 years ago

Vue.component('carter_item', {
    template: '#carter_item',

    data: function () {
        return {
            
        };
    },
});

new Vue({
    el: '#HomePage',
    data: {
        items: {!! $featuredItems !!},
    },
});
<script type="x-template" id="carter_item">
    <div class="col-sm-4">
        <div class="product-image-wrapper">
            <div class="single-products">
                <div class="productinfo text-center">
                    <img src="{{ asset('templates/index/images/home/product4.jpg') }}" alt="" />
                    <h2>$ @{{ item.price }}</h2>
                    <p>@{{ item.name }}</p>
                    <a href="#" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</a>
                </div>
                <div class="product-overlay">
                    <div class="overlay-content">
                        <h2>$ @{{ item.price }}</h2>
                        <p>@{{ item.name }}</p>
                        <a href="#" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</a>
                    </div>
                </div>
                <img v-if="item.new" src="{{ asset('templates/index/images/home/new.png') }}" class="new" alt="" />
                <img v-if="item.sale" src="{{ asset('templates/index/images/home/sale.png') }}" class="new" alt="" />
            </div>
            <div class="choose">
                <ul class="nav nav-pills nav-justified">
                    <li><a href="#"><i class="fa fa-plus-square"></i>Add to wishlist</a></li>
                    <li><a href="#"><i class="fa fa-plus-square"></i>Add to compare</a></li>
                </ul>
            </div>
        </div>
    </div>
</script>

I can loop through the items like this:

 <carter_item v-for="item in items"></carter_item>

but cannot access the item inside my template.

How may i do that?

19th November, 2015

Ozan left a reply on VerifyCsrfToken Except Subdomain • 2 years ago

So now I cannot use 'tasks/*' any more? Only full url?

Ozan left a reply on VerifyCsrfToken Except Subdomain • 2 years ago

You can overwrite the shouldPassThrough method in BaseVerifier class.

    /**
     * Determine if the request has a URI that should pass through CSRF verification.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function shouldPassThrough($request)
    {
        foreach ($this->except as $except) {
            
            if (Str::is($except, $request->url())) {
                return true;
            }

            return false;
        }
    }

17th November, 2015

Ozan left a reply on Eloquent Model Check If Instance Or Hydrated? • 2 years ago

Great question and answer!

Thanks guys!

10th November, 2015

Ozan left a reply on Laracasts New Layout Is Awesome. • 2 years ago

You really should turn the old design back. I want the orange one...

20th October, 2015

Ozan left a reply on Eloquent. Infinite Children Into Usable Array And Render It To Nested Ul • 2 years ago

@JarekTkaczyk Can you also explain a bit about the code you posted. I wonder how you designed the database too.

30th September, 2015

Ozan left a reply on Schedule:run Not Calling Artisan Command • 2 years ago

Ohh, sad to hear that you lost some time messing with this small issue. :D

At least you found it. GJ! :p

Ozan left a reply on Schedule:run Not Calling Artisan Command • 2 years ago

Yes, App\Console\Kernel.

Ozan left a reply on Schedule:run Not Calling Artisan Command • 2 years ago

You guys have to register your command to the Kernel to make it run. Did you do that?

7th September, 2015

Ozan left a reply on Adding Aliases Like `arts` To Git SCM 2.5.1 • 2 years ago

I read the docs for git aliases. As I asked php artisan serve is a system alias, I also restarted my Git Bash to make changes take effect. No result. :/ Any other idea?

Ozan started a new conversation Adding Aliases Like `arts` To Git SCM 2.5.1 • 2 years ago

How can i do that? It doesn't read my ~/.bashrc any more.

1st September, 2015

Ozan started a new conversation Is There A Way To Pass Dependencies To Service Providers? • 2 years ago

Is there a way to pass dependencies to service providers?

14th August, 2015

Ozan left a reply on Polymorphic Relationship From Pivot Table • 2 years ago

Sorry mate, i needed to change the structure. But I'm sure there is a way.

11th July, 2015

Ozan left a reply on Clicking A Link Without A Unique Name (delete A Row From An HTML Table) • 2 years ago

I liked your idea a lot!

9th July, 2015

Ozan started a new conversation Google Analytics With Google Core For Easy Service Integration • 2 years ago

I just finished my new package for Google Services and especially for Google Analytics, It would be great if you guys check it out and comment.

Google Analytics

Google Core

8th July, 2015

Ozan left a reply on Laravel 5 Controller In Package • 2 years ago

It would be nice to use a trait for your routes too. You can create a method where you register your routes and use it in one of your service providers.

5th July, 2015

Ozan left a reply on How To Install Laravel 5.1.6 On Xampp I've Tried • 2 years ago

Use php artisan serve and enter localhost:8000 to you URL bar.

25th June, 2015

Ozan left a reply on Bug Reporting To Illuminate • 2 years ago

You have to commit or create an issue at laravel/framework

17th June, 2015

Ozan left a reply on How To Prevent Javascript Injection • 2 years ago

@JohnRivs in toni's previous post there was

<script>alert();</script>

Ozan left a reply on How To Prevent Javascript Injection • 2 years ago

As yo see he just did :D

Ozan started a new conversation How To Prevent Javascript Injection • 2 years ago

11th June, 2015

Ozan left a reply on Sugar For Testing. • 2 years ago

Nice thing!

31st May, 2015

Ozan left a reply on Format Select Dropdown. • 2 years ago

$collection->transform(function ($item, $key) {
    return '+'.$item;
});

28th May, 2015

Ozan left a reply on Vue JS $http Component TokenMismatchException • 2 years ago

@Ruffles Could be :/

It would be great if there were more information about how to use it. :)

Ozan left a reply on Vue JS $http Component • 2 years ago

Here: (Code)[https://github.com/vuejs/vue-resource]

I don't have anything special, if you don't have any idea about VueJS and sending headers via its $http extension just don't answer.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.