ramazankemal

Member Since 2 Months Ago

Experience Points
1,030
Total
Experience

3,970 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.

  • Community Pillar

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

Level 1
1,030 XP
Mar
05
17 hours ago
Activity icon

Started a new Conversation A Question About Migration

Hello there, Now I have a question like this, I hope I can express myself. I am using Laravel 8. Let me explain through this example; There is User and Post migration. The post model should contain the "user_id" field as it is. Now the problem is 1- php artisan make: model Post -m 2- php artisan make: model User -m

If I create the commands in the above order, the command "php artisan migrate" will show me an error, the error is likely to look like this:

"relation" users "does not exist (SQL: alter table" posts "add constraint" posts_user_id_foreign "foreign key (" user_id ") references" users "(" id ") on delete cascade)"

In fact, if I created the User model before the Post model, there would be no problem. When I want to create a new table while I am progressing in the project, I encounter such problems, in this case I need to delete the migration file with foreign keys and create it again. How can I get rid of it. How can I make it work without deleting the files again?

Mar
04
1 day ago
Activity icon

Replied to What Does "php Artisan Ui: Auth" Do

Does this also make bootstrap usage mandatory ?

Activity icon

Started a new Conversation What Does "php Artisan Ui: Auth" Do

Hello, I included authorization in my project with the following command.

"php artisan ui: auth --views"

Do I need to create factors such as RegisterController,LoginController, and ResetController myself when I include them in this way?Doesn't this command prepare everything for me?

Mar
02
3 days ago
Activity icon

Replied to Barryvdh / Laravel-ide-helper Setup Fails

Unfortunately, my friend, I am already writing correctly. I may just have left a blank space when I write here.

Activity icon

Started a new Conversation Barryvdh / Laravel-ide-helper Setup Fails

Hello there, I am having a problem while trying to install an ide-helper.

"composer require --dev barryvdh / laravel-ide-helper"

When I run this command, the error I get is as follows;

Plugin initialization failed (include (/home/vagrant/Projects_Laravel/sanalpos/vendor/composer/package-versions-deprecated/src/PackageVersions/Installer.php): Failed to open stream: No such file or directory), uninstalling plugin

  • Removing composer / package-versions-deprecated (1.11.99.1) Install of composer / package-versions-deprecated failed

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

[RuntimeException] Could not delete / home / vagrant / Projects_Laravel / virtualpos / vendor / composer / package-versions-deprecated / src:

Mar
01
4 days ago
Activity icon

Started a new Conversation Php Artisan Route:cache

Hello there, When I define a new "route" in the "web.php" file or make any changes, I need to run the "php artisan route: cache" command. How can I get rid of it or automate it?

Feb
25
1 week ago
Activity icon

Started a new Conversation Xdebug Session Was Finished ...

Hello my friends, I'm facing a problem while trying to use Xdebug. The answer to my problem is;

debug-error-1

But when I enable "Run> Break at first line in PHP Scripts" option, it works fine.

debug-error-2

I hope there is nothing missing in the "settings" section.

debug-error-3

Feb
22
1 week ago
Activity icon

Replied to "datatables" Slowness Problem

@guybrush_threepwood

In fact, now I understand that it describes this. It was just a wrong usage style and actually it would not be a problem if I used it as ":: query ()". Your comment gave me a light, thank you.

Activity icon

Replied to "datatables" Slowness Problem

@guybrush_threepwood

Yes I made the changes. I am sharing the screenshot of the error.

datatables-error

Activity icon

Replied to "datatables" Slowness Problem

@chaudigv

Thank you very much, it was perfect. The listing process has been very fast, but how did this happen?

Activity icon

Replied to "datatables" Slowness Problem

@guybrush_threepwood

Thank you very much. I encountered an error like this in your method.

DataTables warning: table id=datatable - Ajax error.For more information about this error, please see http://datatables.net/tn/7

Activity icon

Replied to "datatables" Slowness Problem

$data = Product::paginate(10);

When I use the pagination method, I get the following error. I searched for a bit but couldn't find any results.

DataTables warning: table id=datatable - Exception Message: Trying to access array offset on value of type int

Activity icon

Started a new Conversation "datatables" Slowness Problem

Hello there I am doing about 1500 product listings using a "datatables" example. I will be sharing my codes with you below. The problem is that when this page opens, it takes 25-30 seconds for my products to be put into the table. "I use it because Datatables has its own paging and search feature. I have to wait 25-30 seconds or more again. How can I speed this up?

ProductController ;

public function getProducts(Request $request) {

    if ($request->ajax()) {
        $data = Product::all();

        return Datatables::of($data->toArray())
            ->addIndexColumn()
            ->addColumn('action', function ($row) {
                $actionBtn = '<a href="/products/edit/' . $row["id"] . '" class="edit btn btn-success btn-sm" target="_blank">Edit</a> <button class="productDeleteBtn btn btn-danger btn-sm" data-id="'.$row["id"].'">Delete</button>';
                return $actionBtn;
            })
            ->rawColumns(['action'])
            ->make(true);
    }
}

Datatables ajax ;

$(function () {

var table = $('#datatable').DataTable({
    processing: true,
    serverSide: true,
    ajax:{
        url:"/products/get",
        type: "GET",
    },
    columns: [
        {data: 'name', name: 'name'},
        {data: 'code', name: 'code'},
        {data: 'created_at', name: 'created_at'},
        {data: 'updated_at', name: 'updated_at'},
        {
            data: 'action',
            name: 'id',
            orderable: true,
            searchable: true
        },
    ]
});

});

Feb
18
2 weeks ago
Activity icon

Replied to Multi Language Validation

Thank you i have to take a look at this.

Activity icon

Started a new Conversation Multi Language Validation

Hello there, I want to use multiple languages ​​in my project, first I start by registering the validation.php file under "lang / en /" under "lang / fr /" as validation.php and translating the content into "fr" language. But "config / app.php" Since the locale value is "en", the value is always called from the validation.php under "lang / en /". The local language entered on the page can be "fr". How will I understand this and how will I change the locale value to "fr". Only these two languages. please don't take it as a basis, maybe I'll add another language later, so I want it to be sustainable.

Feb
14
2 weeks ago
Activity icon

Replied to Convert Json To Collection

You are perfect. Thank you very much, this will solve my job.

Activity icon

Started a new Conversation Convert Json To Collection

Hello, Accessing an API, I capture JSON data.For example, products.I translate Json data first into array and then Collection.The result I come across is just like in the picture.But there's one thing I don't want "products" how can I get rid of it. Here's the way I have to use it when I want to call. "$this->data->products "but this can change with the data from the API, for example," $this->data->variants " I can't create a separate method for each, and it's already bad coding, which is against the rule.How can I get rid of the keyword that comes in the data?

Untitled-2

Feb
01
1 month ago
Activity icon

Started a new Conversation Capture Image In Controller

Vue.I post with axios using JS. employee: {firtstName,surname,image,......} I'm sending it to the store function, which is located in a private audit.

public function store (Request $request){

if ($request - > hasFile ("image")){ $image = $ request - > file ('image'); $ imagename = $ request - > image - > getClientOriginalName(); Storage:: disk ('public') - >put('avatars/'.$ imagename, file_get_contents ($image)); }

return response () - >json ("success");

}

But "hasFile ('image')" doesn't respond.

and it works when I send it.

let data = new FormData(); data.append ('image', this.employee.image); data.append("firstName",this.employee.firstName);

I don't want to use it because I don't want to repeat my areas.

How do I submit images and other fields without using FormData ()?

Jan
28
1 month ago
Activity icon

Replied to Virtual Pos Integration

Whatever you give will work for me.

Activity icon

Started a new Conversation Virtual Pos Integration

Can you share a sample resource with virtual pos integration on Laravel

Jan
09
1 month ago
Activity icon

Replied to Vue-Router - Failure To Pull Data From The Database

Thanks for taking care of me. I'm reviewing now.

Jan
08
1 month ago
Activity icon

Started a new Conversation Vue-Router - Failure To Pull Data From The Database

Vue code on my component page :

export default { data(){ return{ id:this.$route.params.id, employee:{} } },

    created() {       
        var url="employee-get-by-id/"+this.id;
        axios.get(url).then(response=>{
           this.employee=response.data;
        });
    }
}

web.php - route

Route::get('/{any}', [SpaController::class,"index"])->where('any', '.*');

Route::get('/employee-get-by-id/{id}',[SpaController::class,"getData"]);

Controller :

public function getData($id){ $employee=DB::table("employee")->find($id); return response()->json($employee); }

if the answer I encounter is :

employee:"\n\n \n \n \n Vue SPA Demo\n\n\n\n \n\n\n\n\n\n" id:12

this answer is App.vue content

how can I figure out why this is happening?

Jan
07
1 month ago
Activity icon

Replied to Homestead - Npm Install Error

You can try this too, you will work. First, do "vagrant halt", then go to the project file, right click and open the terminal, then "npm install" will install it.

Activity icon

Replied to The Vue-router Doesn't Work As I Want It To

I examined the answer, there are some useful things. The problem is now: If I click on any route-link at http: //vue-laravel.test/employee-view/1, my address bar becomes http: //vue-laravel.test/ employee-view / employee-list That is, path comes instead of parameter. Why?

Jan
06
1 month ago
Activity icon

Started a new Conversation The Vue-router Doesn't Work As I Want It To

Hello there, I am using a Vue-Router. My Routes file looks like this: import Emp_ListComponent from "./components/employee/ListComponent"; export const routes = [ { path: '/ employee-list', component: Emp_ListComponent }];

I cannot go to the "/ employee-list" page with the router-link when I am on the vue-laravel.test / example-page / page in the browser. When I click on the router-link, it looks like this. vue-laravel.test / example-page / employee-list This makes me angry, how can I get over it.

Jan
05
2 months ago
Activity icon

Replied to This.$http.get - TypeError: Cannot Read Property 'get' Of..

As you said I used axios I had no problem thank you.

Jan
04
2 months ago
Activity icon

Started a new Conversation This.$http.get - TypeError: Cannot Read Property 'get' Of..

Hello there, I get the following error in the "this. $ http.get" statements below.

Error Message :

[Vue warn]: Error in created hook: "TypeError: Cannot read property 'get' of undefined"

found in

---> at resources/js/components/employee/ViewComponent.vue

Vue Code :

export default { data(){ return{ id:this.$route.params.id, employee:{} } }, methods:{ getEmployee(){ this.$http.get('http://vue-laravel.test/employee-get-by-id/'+this.id).then(function (response) { console.log(response); }); } }, created() { this.getEmployee(); } }

Dec
21
2 months ago
Activity icon

Replied to New Project Does Not Open

Vaoov is ridiculous. I opened the etc / hosts file and checked my previous record. It was standing there. I did CTRL + S, actually it asks a simple question "Do you want to do it as an administrator?" After answering yes to the question, I did CTRL + S again and suddenly my project came to life in the browser. I could not understand. Thank you for supporting me.

Activity icon

Replied to New Project Does Not Open

See, I don't get a result when I use sudo. [email protected]:~$ cd Projects_Laravel [email protected]:~/Projects_Laravel$ cd testproject [email protected]:~/Projects_Laravel/testproject$ sudo netstat -tulpn | grep 8000 [email protected]:~/Projects_Laravel/testproject$

Activity icon

Replied to New Project Does Not Open

netstat -tulpn | grep 8000 I encountered this message when I tried this. (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)

Activity icon

Replied to New Project Does Not Open

I'm trying to open it as testproject.test. But I have the same problem with this one. http://127.0.0.1:8000

Activity icon

Started a new Conversation New Project Does Not Open

I am using laravel homestead virtualbox. When I create a new project, I cannot access it in browser. The project I worked before appears before that. I try commands like vagrant provision and php artisan view: clear but they are not useful. What is the reason for this?