Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,663 members, 7,959,009 topics. Date: Thursday, 26 September 2024 at 09:06 AM |
Nairaland Forum / Science/Technology / Programming / Am New To Laravel And I Seriously Need Help (1103 Views)
Difference between Laravel and Zend framework? / Where Can I Buy Hard Copy Books On Laravel And Node.js In Lagos? / Laravel And Phalcon Which Is Better? Need Inputs (2) (3) (4)
Am New To Laravel And I Seriously Need Help by osazekid(m): 9:52pm On Sep 21, 2015 |
I keep getting array_merge(): Argument #2 is not an array, in the browser, has anyone encountered such? |
Re: Am New To Laravel And I Seriously Need Help by Urine: 10:14pm On Sep 21, 2015 |
osazekid: Care to share your laravel.log file? Most problems of this nature is always caused by the services.json file, you might need to chop it off and rerun composer. If that doesn't work, share your log file, so we can trace the error. |
Re: Am New To Laravel And I Seriously Need Help by osazekid(m): 10:24pm On Sep 21, 2015 |
Urine:Ok thanks, lemme see to what u said |
Re: Am New To Laravel And I Seriously Need Help by maekhel(m): 7:45am On Sep 22, 2015 |
osazekid:are you sure you passed array to the function? |
Re: Am New To Laravel And I Seriously Need Help by wolexme(m): 8:12am On Sep 22, 2015 |
why don't you learn advanced php especially the oop pattern. this will give you the ability to write your own reusable functions,classes,modules and even a framework. understanding the inner workings of a language features will help you attain an expert level. i mean instead of struggling to understand the child why don't you learn the mother once and for all. think about it. |
Re: Am New To Laravel And I Seriously Need Help by osazekid(m): 10:31am On Sep 22, 2015 |
maekhel:which function? is it the one in the controller or the route |
Re: Am New To Laravel And I Seriously Need Help by maekhel(m): 11:23am On Sep 22, 2015 |
osazekid:I mean the array_merge() cos it accept array as argument. pasting affected code will really be of help. |
Re: Am New To Laravel And I Seriously Need Help by dplumptre(m): 8:52am On Sep 24, 2015 |
osazekid: hey, what version of laravel are you using ? By default app/storage is the location for log files, I believe the error is probably the way you wrote an array or something remember there are different ways of writing these thing if you want to see more stuffs visit my blog http://overallheuristic.com/blog/ site : http://overallheuristic.com twitter : @dplumptre fb :https://www.facebook.com/
|
Re: Am New To Laravel And I Seriously Need Help by osazekid(m): 10:54am On Sep 25, 2015 |
dplumptre: You got a nice looking blog, and i think i have gotten the answer, d problem is just looking at me at the face #my route, i am always seeing this in tutorials Route::get(‘articles‘, function(){ return view('articles', 'ArticleController@index‘); } i found out that thats giving d error,and after much searching,d correct one is Route::get('articles', array('as' => 'articles', 'uses' => 'ArticleController@index')); at last! dats y it is saying argument #2 is not complete. so rather than returning the view in d route, it goes to the controller, where returning d view should be. thanks i appreciate. am using laravel5.1 |
(1) (Reply)
Jquery / Opera Mini Vs UC Browser / Pls I Need House Advice
(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. 13 |