mehmetanbaki

mehmetanbaki

Full Stack Developer at Iraq, Baghdad

Member Since 1 Month Ago

Toronto

Experience Points
34,630
Total
Experience

370 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
281
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 7
34,630 XP
Jan
16
1 day ago
Activity icon

Replied to Dynamic Table

@fylzero

definitely I want that besides that I can control with titles of the table I want them to be editable and the number of columns can be changed with the number of excel sheet tables

can I do that ???

Activity icon

Started a new Conversation Dynamic Table

Hey Laravelers

I know I'm asking the same question a few hours ago.

but here I changed the specifications to be more understanding for the question.

I'm using tables to view in my web I want those tables to be dynamically full when I add them as number and objects which means I want to control the number of columns changed with the number of the columns for the table that I add it and so as for the title of the columns I can changed it with the adding. by the way I'm using laravel-excel and elasticsearch

Can I do that ??

Activity icon

Replied to Title Dynamically Added

@snapey

how can I do that exactly and I don't know how to right it dynamically I have to right it static

Activity icon

Replied to Title Dynamically Added

@bugsysha

and how is that exactly I searched a lot in laravel-excel didn't find out anything about that gut the second way that you talked about how is that exactly

Activity icon

Started a new Conversation Title Dynamically Added

Hey Laravelers

I have issue for all this week faced it but I didn't figure it out how to solve it. I'm already tried it with laravel-excel and didn't work . I want add table and give it the number of culomns dynamically and the title names either added dynamically. So any one can help me out with that???

Jan
15
2 days ago
Activity icon

Replied to Algolia

@sti3bas

none that's why I'm asking you

Activity icon

Replied to Algolia

@sti3bas

Thanks buddy, which one is best and with zero bugs??

Activity icon

Started a new Conversation Algolia

Hey Laravelers

I need package Like algolia working with scout locally and free

Activity icon

Replied to Excel Sheet Issue

@jove

I see it before I go to ask here, but it doesn't work or what I want

Activity icon

Started a new Conversation Excel Sheet Issue

Hey Laravelers

I wanna do this way :

I want to export data from excel sheet as always asking you but this time I want to make dynamically for the data cell and data title, to be specific I want the controlling on the titles editing with laravel and contolling the number of columns number.

I found way it's called data-mapping but didn't found any library about it.

how can I do that

any suggestions.

Activity icon

Replied to Route Issue

@sti3bas

I remove it and make sure the new file had extension .xlsx or .csv and didn't work

Activity icon

Replied to Import Bugs

@nakov

it doesn't work

i try everything

Activity icon

Replied to Import Bugs

@manelgavalda

this is the controller


<?php

namespace App\Http\Controllers;

use App\People;
use Illuminate\Http\Request;
use App\Exports\PeopleExport;
use App\Imports\PeopleImport;
use Maatwebsite\Excel\Facades\Excel;

class PeopleController extends Controller
{
    public function importExportView()
    {
       $people = People::get();
       return view('people');
    }

    public function export()
    {
        return Excel::download(new PeopleExport, 'people.xlsx');
        return Excel::download(new PeopleExport, 'people.csv');
    }

    public function import(Request $request)
    {
        $request->validate([
            'import_file' => 'required'
        ]);
        Excel::import(new PeopleImport,request()->file('import_file'));

        return redirect()->back();
    }
}


this is the view page


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <h1>إستيراد وتصدير الملفات</h1>

    <form action="{{ url('import') }}" method="POST" name="importform">
        @csrf
        <input type="file" name="import_file"><br /><hr />
        <button>إستيراد ملفات</button>
        <a href="{{ url('export') }}">تصدير الملف</a>
    </form>

    <hr />
    <hr />
    <hr />

    <table border="1">
        <tr>
            <th>المحافظة</th>
            <th>المدينة</th>
            <th>الحي</th>
            <th>المحلة</th>
            <th>الزقاق</th>
            <th>رقم مركز التموين</th>
            <th>إسم مركز التموين</th>
            <th>رقم الصحيفة</th>
            <th>رقم السجل</th>
            <th>إسم الأب</th>
            <th>تاريخ التولد</th>
            <th>العمر</th>
            <th>الإسم</th>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <hr />

</body>
</html>


Activity icon

Started a new Conversation Import Bugs


Maatwebsite\Excel\Exceptions\NoTypeDetectedException
No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type. 

I have this issue

Activity icon

Started a new Conversation Data-Mapping

I need some data-mapping tool but not this

www.laravel-excel.com

for excel and csv files and I need it free

Activity icon

Replied to Route Issue

@sti3bas

this is the controller

<?php

namespace App\Http\Controllers;

use App\People;
use Illuminate\Http\Request;
use App\Exports\PeopleExport;
use App\Imports\PeopleImport;
use Maatwebsite\Excel\Facades\Excel;

class PeopleController extends Controller
{
    public function importExportView()
    {
       $people = People::get();
       return view('people');
    }

    public function export()
    {
        return Excel::download(new PeopleExport, 'people.xlsx');
        return Excel::download(new PeopleExport, 'people.csv');
    }

    public function import(Request $request)
    {
        $request->validate([
            'import_file' => 'required'
        ]);
        Excel::import(new PeopleImport,request()->file('import_file'));

        return redirect()->back();
    }
}
Activity icon

Replied to Route Issue

@sti3bas

it giving me that issues

Maatwebsite\Excel\Exceptions\NoTypeDetectedException
No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type. 
Activity icon

Started a new Conversation Route Issue

I have this issue

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The POST method is not supported for this route. Supported methods: GET, HEAD. 

view


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <h1>إستيراد وتصدير الملفات</h1>

    <form action="{{ url('people') }}" method="POST" name="importform">
        @csrf
        <input type="file" name="import_file"><br /><hr />
        <button>إستيراد ملفات</button>
        <a href="{{ url('export') }}">تصدير الملف</a>
    </form>

    <hr />
    <hr />
    <hr />

    <table border="1">
        <tr>
            <th>المحافظة</th>
            <th>المدينة</th>
            <th>الحي</th>
            <th>المحلة</th>
            <th>الزقاق</th>
            <th>رقم مركز التموين</th>
            <th>إسم مركز التموين</th>
            <th>رقم الصحيفة</th>
            <th>رقم السجل</th>
            <th>إسم الأب</th>
            <th>تاريخ التولد</th>
            <th>العمر</th>
            <th>الإسم</th>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <hr />

</body>
</html>


route on web services

Route::get('people', '[email protected]');
Route::get('export', '[email protected]');
Route::post('import', '[email protected]');

Activity icon

Replied to Import Issue

@nakov

No I'm on windows

Activity icon

Started a new Conversation Import Issue

Maatwebsite\Excel\Exceptions\NoTypeDetectedException
No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type. 

this is the code for controller


<?php

namespace App\Http\Controllers;

use App\People;
use Illuminate\Http\Request;
use App\Exports\PeopleExport;
use App\Imports\PeopleImport;
use Maatwebsite\Excel\Facades\Excel;

class PeopleController extends Controller
{
    public function importExportView()
    {
       $people = People::get();
       return view('people', compact('people'));
    }

    public function export()
    {
        return Excel::download(new PeopleExport, 'people.xlsx');
    }

    public function import(Request $request)
    {
        $request->validate([
            'import_file' => 'required'
        ]);
        Excel::import(new PeopleImport,request()->file('import_file'));

        return redirect()->back();
    }
}


Activity icon

Started a new Conversation Exporting/Importing Files

Hey Laravelers

I have this issues with exporting files


http://127.0.0.1:8000/url('export')

this is the route with error 404 not found


<?php

namespace App\Http\Controllers;

use App\People;
use Illuminate\Http\Request;
use App\Exports\PeopleExport;
use App\Imports\PoepleImport;
use Maatwebsite\Excel\Facades\Excel;

class PeopleController extends Controller
{
    public function importExportView()
    {
       $people = People::get();
       return view('people', compact('people'));
    }

    public function export()
    {
        return Excel::download(new PeopleExport, 'people.xlsx');
    }

    public function import(Request $request)
    {
        $request->validate([
            'import_file' => 'required'
        ]);
        Excel::import(new PeopleImport,request()->file('import_file'));

        return redirect()->back();
    }
}

this is the controller


Route::get('/people', '[email protected]');
Route::post('/people/import', '[email protected]');
Route::get('export', '[email protected]');

this is the routes


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <h1>إستيراد وتصدير الملفات</h1>

    <form action="{{ url('people/import') }}" method="POST" name="importform">
        @csrf
        <input type="file" name="import_file"><br /><hr />
        <button>إستيراد ملفات</button>
        <a href="url('export')">تصدير الملف</a>
    </form>

    <hr />
    <hr />
    <hr />

    <table border="1">
        <tr>
            <th>المحافظة</th>
            <th>المدينة</th>
            <th>الحي</th>
            <th>المحلة</th>
            <th>الزقاق</th>
            <th>رقم مركز التموين</th>
            <th>إسم مركز التموين</th>
            <th>رقم الصحيفة</th>
            <th>رقم السجل</th>
            <th>إسم الأب</th>
            <th>تاريخ التولد</th>
            <th>العمر</th>
            <th>الإسم</th>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <hr />

</body>
</html>


this is the code view

Jan
14
3 days ago
Activity icon

Replied to Scheduling

@bugsysha

I wanna set status for user let's say I wanna make it for 24 hours after this time it will stop

Activity icon

Started a new Conversation Scheduling

Hey Laravelers

How can I make table auto update able with scheduling

Activity icon

Started a new Conversation Google Maps

Hey Laravelers

I need to get the geolocation on my web from google maps API with the longitude and attitude and I want to grab them as a JSON Format

Activity icon

Started a new Conversation Google Maps API

Hey Laravelers

I have this issue and I don't know what the problem to solve it out :


Symfony\Component\Debug\Exception\FatalThrowableError
Call to undefined method Cornford\Googlmapper\Mapper::initialize()

Activity icon

Started a new Conversation DataBase

Hey Laravelers

I wanna get data into views from xls. or csv. file without any database how can I do that

Activity icon

Started a new Conversation Queueing

Hey Laravelers

Can I use queueing with mysql or just with redis because it didn't mention it in the documentations

Jan
12
5 days ago
Activity icon

Replied to Recursive Static Function Always Returns Null

@lishaliu

then I think you should return it with json response

just like that :

    return Response::json($agent);

Activity icon

Replied to Recursive Static Function Always Returns Null

@lishaliu

May be you should try redirect instead of return

Activity icon

Started a new Conversation Seed

Hey Laravelers

If I can work on my app without seed perfectly what is the purpose of seed and why we are seeding the database ??

Jan
10
1 week ago
Activity icon

Replied to TDD

@manelgavalda Thanks buddy

Activity icon

Replied to TDD

@manelgavalda

It's worked perfect but is that exactly ??? and it's exactly just like I wrote it first

Activity icon

Replied to TDD

@manelgavalda

it giving me that error

PHP Fatal error:  Only variables can be passed by reference in Psy Shell code on line 1
Activity icon

Replied to TDD

@manelgavalda It's the same problem didn't work and yeah I'm using 7.4 php so how can I do it with shorthand functions exactly

Activity icon

Started a new Conversation TDD

Hey Laravelers

I have this problem :


$threads->each(function ($thread) { factory('App\Reply', 10)->create(['thread_id' => $thread_id]); });
PHP Notice:  Undefined variable: thread_id in Psy Shell code on line 2


by the way it's from :

Let's Build A Forum with Laravel and TDD Course

Jan
08
1 week ago
Activity icon

Replied to Composer Problem

@nakov

OK thanks for mentioning that

Activity icon

Replied to Composer Problem

@nakov

I didn't write the name of project as I create it here I just give you an example

Activity icon

Replied to Composer Problem

@nakov

I solve it the problem because of the name it didn't take the comma with the name

Activity icon

Replied to Composer Problem

@nakov

yeah

Activity icon

Replied to Composer Problem

@nakov

both of them :

laravel new project 

or

composer create-project --prefer-dist laravel/laravel project 

Activity icon

Started a new Conversation Composer Problem

Hey Laravelers

when I create project after I hit enter to create

it keep giving me this symbol

>

Why ???

Jan
07
1 week ago
Activity icon

Replied to Artisan Serve

@sergiu17

I want it out of the lamp server not just in the lamp I want it just like windows or mac on the desktop

Activity icon

Replied to Artisan Serve

@sergiu17 Yes I did all of them but the ubuntu didn't accept anything

Activity icon

Replied to Artisan Serve

@sergiu17

I complete these series long time ago but the problem is with the linux systems with windows and mac os work fine but these problems is appear a lot

Activity icon

Replied to Artisan Serve

@sergiu17

]Composer could not find a composer.json file in /home/admint
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

that what happen

Activity icon

Started a new Conversation Artisan Serve


PHP Warning:  require(/home/admint/Desktop/App/vendor/autoload.php): failed to open stream: No such file or directory in /home/admint/Desktop/App/artisan on line 18
PHP Fatal error:  require(): Failed opening required '/home/admint/Desktop/App/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/admint/Desktop/App/artisan on line 18

this problem appearse to me when I give the command in terminal this issue start to appear when I change my os to ubuntu

Jan
05
1 week ago
Activity icon

Replied to New Project

@nakov

I did all of them but didn't work until I remove everything, restart the computer and reinstall again.

by the way my php version is 7.4.1

Activity icon

Replied to New Project

@nakov no what I mean the laravel installer didn't give you the latest version but the composer installer did

Activity icon

Replied to New Project

@tray2 this work and working perfectly because the laravel installer give you the current version the composer installer give you the latest version of laravel

Activity icon

Replied to New Project