Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,195,522 members, 7,958,583 topics. Date: Wednesday, 25 September 2024 at 06:05 PM

Maekhel's Posts

Nairaland Forum / Maekhel's Profile / Maekhel's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (of 26 pages)

Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 3:49pm On Aug 28, 2015
Programming / Populating Select Menu From Model In User Registration Form In Laravel by maekhel(m): 3:47pm On Aug 28, 2015
Am trying to pass data from a model to be used to populate a select menu in my user registration form. What is the easy way to achieve this?
Programming / Re: Laravel:call To Undefined Method Illuminate\database\eloquent\collection::save() by maekhel(m): 3:10pm On Aug 28, 2015
Nice one bro

1 Like

Programming / Re: How To Add Icon To Visual Basic 6.0 Form by maekhel(m): 10:59am On Aug 27, 2015
MuhammaduBuhari:

collect my money sharp sharp and get the heck out of there.
grin
Education / Re: Federal University Of Agriculture,Abeokuta(FUNAAB) 2015/2016 Admission. by maekhel(m): 9:35am On Aug 27, 2015
philiancoop:

an in-school admissions consultant sent it to me via whatsapp as a sort of a broadcast message. That's all I got. Know nothing about DE
OK
Programming / Re: How To Add Icon To Visual Basic 6.0 Form by maekhel(m): 9:22am On Aug 27, 2015
MuhammaduBuhari:

Okay, I am sorry about that. I have no formal computer training, so i dont know what they teach. I only follow trends from internet.
Na so...you be boss na.
Had to just read and pass the course... Neva opened vb 6 since then.
Programming / Re: How To Add Icon To Visual Basic 6.0 Form by maekhel(m): 8:59am On Aug 27, 2015
MuhammaduBuhari:
But really? in this age and time, should anyone still be talking vb 6?
No be our fault ooo, thats what some of our polytechnics still teach.
Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 7:21am On Aug 27, 2015
MuhammaduBuhari:
Thank God for the great programmers on nairaland.
No mind me, na old-school troll i be thinking that laravel is the same as SQL.
Lol
Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 1:04am On Aug 27, 2015
Thanks guys for your help, working as expected now.smiley

1 Like

Education / Re: Federal University Of Agriculture,Abeokuta(FUNAAB) 2015/2016 Admission. by maekhel(m): 11:58pm On Aug 26, 2015
philiancoop:
Based on the outcome of the senate meeting yesterday, the post utme pass mark was reduced to 30 percent as a result of mass failure of the just concluded post utme. Still working on getting full cut off mark for all department.
#copied
source pls and what of DE students.
Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 10:57pm On Aug 26, 2015
jacob05:

It's most likely that $categories = Category::find($id); found nothing but passed as null and the view is trying to access it's property
It actually found something, cos if I comment out looping thru the categories to create select menu it works. But that does give the options to select from other categories in the database.
Hope you got wat I mean?
Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 10:15pm On Aug 26, 2015
jacob05:


An Over-Kill, to me, for the simple task... Baum\Node? , phewww
Thats my take on Baum too.
have being able to loop and display the categories the way I wanted.
But am now faced with another problem. I created an edit link on each categories passing it category id, but I got this error:

ErrorException in 775837465f5ab64876c1dc1677878595 line 46: Trying to get property of non-object (View: /resources/views/backend/categories/edit.blade.php)
My controller
public function edit($id)
{
$categories = Category::find($id);
//print_r($categories);
return view('backend.categories.edit')->with('categories', $categories);
}
Programming / Re: Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 9:41am On Aug 26, 2015
Sorry for not providing codes before.
My Controller:
public function index()
{
$categories = Category::with('children')->get();

return view('backend.categories.index')->with('categories', $categories);
}

My Category Model :
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
protected $guarded = ['id'];

public function parent()
{
return $this->belongsTo('App\Category', 'parent_id');
}

public function children()
{
return $this->hasMany('App\Category', 'parent_id');
}
}
My View:
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Slug</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($categories as $category)
{{--@foreach ($category->children as $children)--}}
<tr>
<td>{{ $category->name }}</td>
<td>{{ $category->description }}</td>
<td>{{ $category->slug }}</td>
<td><a class="edit" href="{!! action('Admin\CategoriesController@edit', $category->id) !!}" title="Edit"><i class="fa fa-pencil-square-o"></a></i> <a class="delete" href="{!! action('Admin\CategoriesController@destroy', $category->id) !!}" title="Are you sure you want to delete?"><i class="fa fa-trash-o"></i></a></td>
@foreach ($category->children as $children)
<tr>
<td>{{ $children->name }}</td>
<td>{{ $children->description }}</td>
<td>{{ $children->slug }}</td>
<td></td>
</tr>
@endforeach
</tr>
</tbody>
{{--@endforeach--}}
@endforeach
</table>
Yes I have a categories table with the following structure:

+-------------+------------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+------------------+------+-----+---------------------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | | NULL | |
| slug | varchar(255) | NO | | NULL | |
| parent_id | int(11) | YES | | NULL | |
| description | text | NO | | NULL | |
| created_at | timestamp | NO | | 0000-00-00 00:00:00 | |
| updated_at | timestamp | NO | | 0000-00-00 00:00:00 | |
+-------------+------------------+------+-----+---------------------+----------------+

Programming / Create A Nested Lists Of Categories In Laravel 5 by maekhel(m): 12:06am On Aug 26, 2015
Laravel gurus I need your help on a project am currently working on. Am trying to create a tree-like categories structure where each child will be listed under its parent. Am being able to create and save these categories in the database but now am finding it difficult to loop through the categories and display them. I want the categories to be rendered as below:
Fashion Accessories
- Bags
- Cloths
Mobile Phones
- Tablets
- Smartphones
Programming / Re: Spectranet 4glite Promo Device In Ibadan. by maekhel(m): 10:14pm On Aug 24, 2015
30GB => 16k
5GB => 12k
How come the wide margin in GB sad
Programming / Re: How To Improve My Php Skills by maekhel(m): 8:58pm On Aug 14, 2015
Olaryinkah:
have went tru a lot of PDFs on php still am not satisfy ...cos I imagine a lot of crazy things on my head I wanna create , bt I can't create them cos they need craZy php codes...can you guys advice how I can improve my php skills and become real crazy,real bad in php
Since u said you ve gone thru some materials, I bliv you now ve some basic PHP skills. Try creating those ideas you ve in your head then when you get stuck use Google, you will faster that way by going thru other people's implementations.
The best way to learn programming is by practicing.
Programming / Re: Javascript Is Very Very Powerful, It's Not Just Script. by maekhel(m): 4:08pm On Aug 14, 2015
micodon:


No matter how powerful it is, it is still a scripting language like Perl, PHP, Python, Ruby, Lua and the likes.
Calling it a scripting language does not diminish its power, it just tells the world how it is executed -- BY BEING INTERPRETED.
So?
Programming / Re: Python Mysql by maekhel(m): 8:38pm On Jul 28, 2015
lukman008:
Thanks guys.. The problem was a comma in the wrong place angry.. Can't believe it took me so long to notice it.. Thanks a lot... #GodBless smiley smiley
Lil errors like dat can be so frustrating
Programming / Re: Adding Flash Message To Your Laravel Application Easy by maekhel(m): 12:35pm On Jul 28, 2015
Nice one
Programming / Re: Fellow PHP Developers, Help Me Look In This. by maekhel(m): 8:09am On Jul 24, 2015
dhtml18:

Chisox! what do you people take me for? A comedian or a programmer?
A mix in between smiley
Education / Re: Funaab 2014/2015 Direct Entry Aspirant. Meet Here >>>cont.>>> by maekhel(m): 6:14pm On Jul 10, 2015
Sungba:
plz can i start processing my transcript to unaab now or i shd wait till d school ask for it,
urgent reply plz?
Start processing it now, so by the time Funaab will ask it be ready then.
Webmasters / Re: Who Can Solve This Problem Pls by maekhel(m): 9:50am On Jul 07, 2015
cbrass:


From a previous code above
Why not attach the post id to the edit link then use the id in your where clause in your update query
Webmasters / Re: Who Can Solve This Problem Pls by maekhel(m): 7:09am On Jul 07, 2015
First of all where is $postID coming from?
Programming / Re: How To Print All Records From A Datagridview In Vb.net by maekhel(m): 8:39am On Jun 12, 2015
francis164:
Please am new into vb.net, I just finished a project but I need to add a print button in order to get the records I inserted into my datagridview from my sql database. I don't know how to go about that. please I need urgent help
http://tutorialslodge.com/display-access-table-records-in-datagridview-visual-basic-net/
Programming / Re: Please I Need Help With Java Source Code by maekhel(m): 8:20am On Jun 08, 2015
Foxybone:
It is an assignment which would be submitted soon. The source code for a banking application that would do everything that needs to be done in a transaction.

Thanks so much.

Please text me on this contact...

07017330864
08066483524

God bless you.
you go old here
Webmasters / Re: I Need A Developer Asap by maekhel(m): 2:17pm On May 29, 2015
Rich4god:
Plz, I PMed u.... I want to ask you some questions abt web design and their likes...
OK, av replied u
Webmasters / Re: I Need A Developer Asap by maekhel(m): 9:41am On May 29, 2015
Skype: meziemichael
Webmasters / Re: Submit Sites To Be Posted On News Source by maekhel(m): 5:53am On May 14, 2015
Tutorials Lodge
www.tutorialslodge.com
Tech Blog
Education / Re: 2015/2016 Direct Entry Admission Obafemi Awolowo University, Ile-ife by maekhel(m): 8:49am On May 10, 2015
AkinadeDare:
I think u will need to go to ur poly and table this at d Admission office.....or betterstill ask urn colleagues u r in d same shoe wit............
Anybody wit helpful info in d room?
I've waited for over two weeks now and no news concerning my regularization ooo.........i'm unable to register due to dis........wat do i do?
You did part-time too?
Education / Re: 2015/2016 Direct Entry Admission Obafemi Awolowo University, Ile-ife by maekhel(m): 7:24am On May 10, 2015
AkinadeDare:
Regularization could mean jamb recognizing one's admission in one's former institution e.g. PolyIbadan....
... I don't think one can register without the regularization oo.............d tin don tire me oooo............and tym dey go
I did part-time frm laspotech and I don't av jamb reg number, pls hw can I resolve dis so I cn apply fr DE.
Education / Re: 2015/2016 Direct Entry Admission Obafemi Awolowo University, Ile-ife by maekhel(m): 12:51am On May 10, 2015
AkinadeDare:
Any PolyIbadan student regularized? It's over two weeks now that i've submitted the required documents for regularization at Polyibadan. Pls, should i keep waiting or what's the next line of action
Which 1 be regularization again?
Education / Re: 2015/2016 Direct Entry University Of Agric,abeokuta, FUNAAB by maekhel(m): 6:12am On May 06, 2015
Hi room,
I want to apply fr Funaab DE, I finished my ND in comp sci with 3.67 CGPA from LASPOTECH. Please what my change of been admitted for comp sci.
Pls also add me to the whatsapp group, 07032047179

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (of 26 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 32
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.