Questions tagged [laravel-3]

Laravel 3 is the outdated version of the open-source framework for PHP web development created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Special Characters and Searches with Laravel 3

I am using a grid to display businesses. I'm going to strip down our laravel call to bare minimum so lets say I have about 20,000 businesses and I don't want to load them all if I don't need to. So I ...
  • 311
0 votes
0 answers
195 views

Laravel 3, sessions flash, flush and forget doesnt work between methods

In my job we have a system that is running on Laravel 3.0, and we have an issue when we use the Session::flash('whatever'), if we keep in the same function or method, for example, post_new(){}. The ...
0 votes
1 answer
223 views

Laravel 3 issues with loading Views using Ajax

I have a page with multipele <FORM>s eg: @foreach($build['products'] as $productid) <form id="productid_49" method="POST" action="/products/49/custom"> ...
0 votes
2 answers
773 views

Upgrade laravel 3 to 5

I want to upgrade laravel version from 3.1 to 5.x. What steps I need to follow to do this? Approach I found based on research is Moving 3 to 4 first and then from 4 to 5. Fresh installation of ...
0 votes
1 answer
951 views

How to make efficient pagination with total count

We have a web application which helps organizing biological experiments (users describe experiment and upload experiment data). In the main page, we show first 10 experiments and then below Previous ...
  • 3,216
0 votes
1 answer
448 views

Allowing a slug on a route in Controller mapped routes in laravel

Im using Laravel 3, I know. Its old. Its a legacy project. But I have my controllers being auto detected with Route::controller(Controller::detect()); This however wont let me use slugs on the ...
  • 11.3k
1 vote
4 answers
216 views

Logged In User Count Laravel 3

I'm using Laravel 3. How do I have a notice that can tell me how many users are currently logged in. I wish I could explain this better but I am new to Laravel and I should upgrade to 5.1 but that is ...
  • 647
0 votes
1 answer
140 views

Laravel3 group_by + sum + paginate?

I have to write a query like : SELECT azon, SUM(points) points FROM stats GROUP BY azon; Also I need to paginate them in Laravel3. So I tried Stats::group_by('azon')->sum('points')->paginate(20)...
  • 2,025
1 vote
1 answer
231 views

Need to convert raw queries into laravel Eloquent

Below is my raw MySQL query: SELECT T1.id, T1.department_id, COALESCE(T2.cnt, 0) AS cnt FROM (SELECT DISTINCT id, department_id FROM users WHERE company_id = '33') AS T1 LEFT JOIN ( ...
0 votes
1 answer
135 views

Redirects to HTTPS on Laravel 3

I set a SSL certificate in my website, currently using Laravel 3. I am trying to get redirects from HTTP to HTTPS, so when a user enter our former website address, it automatically redirects to the ...
3 votes
0 answers
279 views

Global query scope , Multi-tenant architecture

I'm trying modify the existing code to do Global query scoping in Laravel 3!! for multi-tenant architecture. Need some idea in terms of, how multi-tenant architecture is achievable in laravel 3 ...
  • 41
6 votes
6 answers
12k views

How I Prevent Browser's Back Button Login After Logout

My problem is i can logout properly after i click to logout link but if i click to back button of the browser, still able to see the content of the page which actually should not be seen with respect ...
  • 137
1 vote
2 answers
85 views

Model with custom table doesn't save, in Laravel 3

I have an eloquent model, that is using a custom table, coming from the user table. Like so... class Appointment extends Eloquent { public static $table = null; public function __construct()...
  • 11.3k
0 votes
0 answers
561 views

User authentication via android application in laravel 3 web service

I am using laravel 3 for my web application. As its outdated now so i am not getting any help for laravel3 for: android application integration with laravel 3. Problem: when i submit get request to ...
-4 votes
1 answer
314 views

Actually I am learning Laravel I need some Advance lavel resource. any body can help me [closed]

Actually I am learning Laravel I need some Advance level resource. any body can help me .I complete beginner level .
0 votes
1 answer
1k views

How to show an image in video player

I want to show image in player but I can't, My player is: <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="250" height="200" ...
2 votes
1 answer
6k views

Upload video with Laravel

I have a problem with my upload in laravel. My view : {{ Form::open(array('url'=>'administration/video/create','method' => 'post','files'=>true)) }} <p> {{ Form::...
0 votes
2 answers
3k views

Delete multiple rows from database based on the checkboxes

I have a problem with a delete from database. If for example I checked 5 items only one is deleted. Normaly the script is correctly: My view: {{ Form::open(array('url'=>'/administration/photo/...
0 votes
1 answer
62 views

Can not manage Laravel query builder

$a = 0; $searchqueryMake = 'whereHas'; foreach ($options as $param) { if($a>0 && $searchCriteria == 2) { $searchqueryMake = 'orWhereHas'; $u = ($u->$...
0 votes
3 answers
80 views

Get selected value in form, seletbox

I have a problem and I can't resolve it, please help me. So I have my form : {{ Form::open(array('url'=>'/administration/student/addMarks','method' => 'post')) }} @foreach($...
0 votes
1 answer
740 views

how to post data from android to laravel 3 controller

Hello guys i am using laravel 3, i want to make post request to laravel 3 controller. here is coontroller users.php class Users_Controller extends Base_Controller { public $...
-1 votes
1 answer
1k views

Laravel 3 Eloquent ORM for 3 level relation & filter

I had 3 models: model A: class A extends \Eloquent { ... public function Bs() { return $this->belongsTo('B','B_id','id'); } public function Xs() { return $this->...
5 votes
1 answer
42k views

Laravel - Query "with"

I have a query where I need to get info from 2 tables. So I need to get invoices with the invoice_status 1, where the user_status is 1. I though I could query the Invoices table with the users table. ...
  • 331
31 votes
14 answers
239k views

Convert laravel object to array

Laravel output: Array ( [0] = stdClass Object ( [ID] = 5 ) [1] = stdClass Object ( [ID] = 4 ) ) I want to convert this into normal array. Just want to ...
  • 1,109
0 votes
1 answer
67 views

Using Laravel 4 package on Laravel 3

I would like to use FbF/Laravel-Blog package which is for Laravel 4 on my site that is made on Laravel 3. Updating the site from Laravel 3 to Laravel 4 is not an option. The site installed manually ...
  • 419
1 vote
1 answer
2k views

File not readable in Laravel

Im trying to open a template with PHPExcel, in laravel. $objPHPExcel = PHPExcel_IOFactory::load(URL::to_asset('myfile.xls')); However, I get a File is not readable error. When I do this... if(...
  • 11.3k
0 votes
1 answer
1k views

Laravel + AJAX file upload fails due to file size

Uploading files larger than around 100KB fails with 500 server error. The site is built on Laravel and is using AJAX for file uploading. Small files can be loaded without problems. I have tested ...
  • 419
0 votes
1 answer
89 views

ObservableArray not binding to GUI

I'm new with knockout.js and trying to fix data binding on a site that is build on Laravel and is using knockout.js. Observable array works well and items can be pushed and popped without issues. The ...
  • 419
0 votes
1 answer
2k views

Laravel eloquent omits null values

I'm trying to do a left join using two tables, where I need to get all user id and name in first which satisfies a condition and total number of rows in the second table for each user. If a user doesn'...
2 votes
4 answers
26k views

Laravel get TimeZone not working

Iam trying to convert UTC timezone to Singapore Time echo $Date->format('Y-m-d H:i:s'); echo '<br>'; echo with(new Carbon\Carbon($Date->format('Y-m-d H:i:s')))->tz('Asia/...
  • 1,109
0 votes
1 answer
926 views

Laravel - Blade Template define sections/include

Is there a way I don't have to use multiple @include for the tabs for some pages. For example I do something like this In the section/product-tab1.blade.php <ul class="nav-tabs hidden-xs" role=...
0 votes
2 answers
247 views

Find element in Laravel object

below is an output of my laravel object... $my_array = Array( [0] => stdClass Object ( [From] => name1 [To] => name12 [Message] => hey) [1] => stdClass Object ( [From] => name13 [To]...
  • 1,109
0 votes
3 answers
738 views

Create a view with a lot of parameters in Laravel

I need to create a view with more than 20 parameters into a controller. In Laravel there are many ways to pass parameters into a view: Method 1: Passing $data as a parameter public function ...
  • 58
3 votes
1 answer
14k views

how to use encode and decode in laravel

In core php we use url_encode() and url_decode() so like this function we can use in laravel 4. If that's possible, please tell me how. <p> <a href="userregistrations/{{ $users-> id }}...
6 votes
2 answers
7k views

Laravel - Add trailing slash with Redirect::route()

I'm trying to add a slash to the end of the URL after I use Redirect::route() with Laravel. I've tried numerous examples but couldnt find an answer. This is what I have so far: routes.php: Route::get('...
-1 votes
1 answer
1k views

How do I bind multiple models to a form?

How do I bind multiple models to a form? For example, I have an order and order details section on a form and I want to bind a separate model to the order details fields..
0 votes
1 answer
3k views

LARAVEL create auto relationship on models

I'm new to defining relationships and frameworks all together, I want to define and create databalse relationships on model without change by hand for example: Heres is the relevant information: ...
  • 15.2k
0 votes
1 answer
141 views

dynamicly create table with n'th colspans

So I'm trying to render a table using php (in this case laravel blade templating engine). The idea is that when you have a date time who is equal to its next item_date it would colspan. I've been ...
  • 742
1 vote
0 answers
1k views

Is Integrating an already existing php project with Laravel a wise choice?

I have a website http://aw3some.tv/ , which was initially created to be just a simple video blog kind of a thing , and as such i didn't feel the need for any frameworks . I just divided my project in ...
  • 327
0 votes
2 answers
90 views

updating and/or creating objects with dynamic forms

Hi I have a relatioship between client and phones. Using an array name in the form I managed to save all numbers to a client: form: <input type="text" class="form-control phone-number" name="...
  • 742
0 votes
1 answer
220 views

Passing internal parameter to controller functions with Redirect

in controller i have getEdit function and i want to pass parameter from this controller functions with Redirect::route. for example this functions get parameter normally: public function getEdit( $...
  • 15.2k
0 votes
1 answer
59 views

Laravel Sqlcommand could not retrive result

In phpmyadmin MySQL command is ok and that can be fetch result correctly. After using this command with QueryBuilder result set is empty. MySQL Command : SELECT created_at FROM `entryExit` WHERE `...
  • 15.2k
0 votes
1 answer
95 views

Uploading a webpage made via Laravel on a core PHP based website

How to upload a Laravel based webpage on PHP server? The main website is coded in core PHP and I made a webpage using Laravel. The guy working with uploading of the webpages didn't know how to ...
  • 500
4 votes
1 answer
26k views

Laravel Blade using if condition inside foreach

here is my code .. @foreach (Session::get('show_my_data') as $key1 => $value1) <div class="sb_li"> <input id="sb_system_input_{{ $value1->Myid }}" class="fr_cap" type="text"...
  • 1,286
0 votes
1 answer
492 views

Swiftmailer Attachment Cannot Be Opened (Laravel 3)

I'm using the Swiftmailer bundle for Laravel 3 and trying to attach an uploaded file to an email message: $message = \Message::bcc(preg_split('/,/', preg_replace('/\s+/', '', $to))) ->from(...
  • 3,523
0 votes
2 answers
1k views

Laravel Passing variable not working

Hello People here is my code i have used in controller... public function bulk() { return View::make('bulk')->with('message','hii there'); } my route file contains... Route::get('bulk',...
  • 1,286
0 votes
1 answer
2k views

Laravel: Common Regex For route pattern and Model validation

Situation where I came across: Consider the following cases : Route::pattern() or we can use Route::({method}/{keyword})->where('keyword', {regex}); Validation Rule array( 'keyword' => "/^{...
  • 6,081
1 vote
2 answers
393 views

Laravel Equivalent of passing variables to functions in codeigniter

I am using CodeIgniter from 2 years and i am trying to move to Laravel and I saw many tutorials of how to use Laravel but i couldn't find any answers to how to pass variables to functions using the ...
0 votes
1 answer
1k views

How to exclude some particular objects in laravel

I have Two tables in my Laravel application. 1 is collection and second one is q_collections. Collection table contains some objects. q_collections has many to one field to collections , means ...
  • 1,124
0 votes
3 answers
2k views

Assign an array of objects to another object's key in Laravel

I am working on a Q&A app in Laravel. Here, I have two migrations or database tables, one is question_bank and second is answer_choices. There is one to many relation between question and answers ...
  • 1,124

1
2 3 4 5
8